diff --git a/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java b/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java
index faf0322ed38491d995f717417069d4f46a291722..7c117b4bbb8ec6957256aadb80739fc6e7ac2e22 100644 (file)
package ru.deadsoftware.cavecraft.game;
import com.badlogic.gdx.Gdx;
+import ru.deadsoftware.cavecraft.Items;
public class GameWorld {
}
public void placeToBackground(int x, int y, int value) {
- if (getBackMap(x,y) == 0 || value == 0) setBackMap(x,y,value);
+ if ((getBackMap(x,y) == 0 || value == 0) &&
+ !Items.BLOCKS.getValueAt(value).foreground) setBackMap(x,y,value);
}
}