mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-08 00:39:10 +00:00
Merge pull request #256 from CharlesVaneenoo/remove-useless-if2
Remove a useless if in GameObjectDecoder
This commit is contained in:
@@ -172,11 +172,9 @@ 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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user