Merge pull request #256 from CharlesVaneenoo/remove-useless-if2

Remove a useless if in GameObjectDecoder
This commit is contained in:
Major
2016-02-27 08:21:03 +00:00
@@ -172,12 +172,10 @@ public final class GameObjectDecoder implements Runnable {
block = true; block = true;
} }
if ((attributes & BRIDGE_TILE) != 0) { if ((attributes & BRIDGE_TILE) != 0 && height >0) {
if (height > 0) {
block = true; block = true;
height--; height--;
} }
}
if (block) { if (block) {
int localX = x % Region.SIZE, localY = y % Region.SIZE; int localX = x % Region.SIZE, localY = y % Region.SIZE;