X-Git-Url: http://deadsoftware.ru/gitweb?p=cavedroid.git;a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2Fgame%2FGameWorld.java;h=65c9d0300f354eb94aa182de4b1635cc0eed7634;hp=4a14c7123f7935203a6206f9ff5559475a20e862;hb=c938382b1332c47e7119f742711960c7cc4c75ca;hpb=a2d04a40dddc471fef220ef38b2f5e2229b9d250 diff --git a/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java b/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java index 4a14c71..65c9d03 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java +++ b/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java @@ -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); } }