X-Git-Url: https://deadsoftware.ru/gitweb?p=cavedroid.git;a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2Fgame%2FGameWorld.java;h=0c3ac52f40fc1804d29017470e315eaffda5ee0c;hp=e86fb3a5e5a5ecbf0c5b2ada365a7ef61c4aee3f;hb=4617ae53584520a741f45770e17a2a253717f83a;hpb=9bc9e7fc15cb9c4bdde3c5c7e0c93097c7395d0a diff --git a/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java b/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java index e86fb3a..0c3ac52 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java +++ b/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java @@ -2,7 +2,6 @@ package ru.deadsoftware.cavecraft.game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.math.Vector2; -import ru.deadsoftware.cavecraft.Items; public class GameWorld { @@ -78,7 +77,7 @@ public class GameWorld { } public void placeToBackground(int x, int y, int value) { - if (value==0 || (getBackMap(x,y) == 0 && !Items.BLOCKS.getValueAt(value).foreground)) { + if (value==0 || (getBackMap(x,y) == 0 && !Items.BLOCKS.getValueAt(value).background)) { setBackMap(x,y,value); } }