diff --git a/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java b/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java
index e86fb3a5e5a5ecbf0c5b2ada365a7ef61c4aee3f..0c3ac52f40fc1804d29017470e315eaffda5ee0c 100644 (file)
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.math.Vector2;
-import ru.deadsoftware.cavecraft.Items;
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);
}
}