DEADSOFTWARE

Add desert
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / GameWorld.java
index 4a14c7123f7935203a6206f9ff5559475a20e862..65c9d0300f354eb94aa182de4b1635cc0eed7634 100644 (file)
@@ -78,7 +78,8 @@ public class GameWorld {
     }
 
     public void placeToBackground(int x, int y, int value) {
-        if (value==0 || (getBackMap(x,y) == 0 && Items.BLOCKS.getValueAt(value).collision)) {
+        if (value==0 || (getBackMap(x,y) == 0 && Items.BLOCKS.getValueAt(value).collision) &&
+                (!Items.BLOCKS.getValueAt(value).transparent || value == 18)) {
             setBackMap(x,y,value);
         }
     }