DEADSOFTWARE

Add slab full block reference in json
[cavedroid.git] / core / src / ru / deadsoftware / cavedroid / game / GameItems.java
index 079f4855d88465aebea7b60091b06e773d3ac328..eeeeb115da03fad2112abe5b96682373251d083f 100644 (file)
@@ -144,6 +144,7 @@ public class GameItems {
                 boolean animated = Assets.getBooleanFromJson(block, "animated", false);
                 int frames = Assets.getIntFromJson(block, "frames", 0);
                 int id = Assets.getIntFromJson(block, "id", count);
+                String fullBlock = Assets.getStringFromJson(block, "full_block", null);
                 blocksIds.put(key, id);
 
                 if (count >= id) {
@@ -171,7 +172,8 @@ public class GameItems {
                         clipX,
                         clipY,
                         clipWidth,
-                        clipHeight
+                        clipHeight,
+                        fullBlock
                 );
                 blocksSet.add(newBlock);
             } catch (GdxRuntimeException e) {