summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 769c26b)
raw | patch | inline | side by side (parent: 769c26b)
author | fred-boy <fred-boy@protonmail.com> | |
Thu, 12 Apr 2018 14:29:30 +0000 (21:29 +0700) | ||
committer | fred-boy <fred-boy@protonmail.com> | |
Thu, 12 Apr 2018 14:29:30 +0000 (21:29 +0700) |
core/src/ru/deadsoftware/cavecraft/game/GameWorld.java | patch | blob | history |
diff --git a/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java b/core/src/ru/deadsoftware/cavecraft/game/GameWorld.java
index 7c117b4bbb8ec6957256aadb80739fc6e7ac2e22..c32bbd9358f297088f28c43572154652520b919c 100644 (file)
}
public void placeToBackground(int x, int y, int value) {
- if ((getBackMap(x,y) == 0 || value == 0) &&
- !Items.BLOCKS.getValueAt(value).foreground) setBackMap(x,y,value);
+ if (value==0 || (getBackMap(x,y) == 0 && !Items.BLOCKS.getValueAt(value).foreground))
+ setBackMap(x,y,value);
}
}