new PR after bad rebase

This commit is contained in:
CharlesVaneenoo
2016-02-26 21:25:20 +01:00
parent f0af06f0c4
commit 5fd8640d62
@@ -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;