Project

General

Profile

« Previous | Next » 

Revision efeca8ef

Added by Leszek Koltunski about 2 years ago

Fixes for scrambling locally-produced bandaged cuboid.
Still does not work completely.

View differences:

src/main/java/org/distorted/objectlib/json/JsonReader.java
32 32

  
33 33
import org.distorted.objectlib.helpers.ObjectFaceShape;
34 34
import org.distorted.objectlib.helpers.ObjectSignature;
35
import org.distorted.objectlib.objects.TwistyBandagedGeneric;
35 36
import org.json.JSONArray;
36 37
import org.json.JSONException;
37 38
import org.json.JSONObject;
......
144 145
      long signature1 = object.getLong("signature1");
145 146
      long signature2 = object.getLong("signature2");
146 147
      long signature3 = object.getLong("signature3");
147
      mSignature = new ObjectSignature(signature1,signature2,signature3);
148

  
149
      if( mLongName.equals(TwistyBandagedGeneric.OBJECT_NAME) )
150
        {
151
        mSignature = new ObjectSignature(mShortName,signature1,signature2,signature3);
152
        }
153
      else
154
        {
155
        mSignature = new ObjectSignature(signature1,signature2,signature3);
156
        }
148 157
      }
149 158
    catch(JSONException ex)
150 159
      {

Also available in: Unified diff