mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-27 14:30:23 +00:00
Fix structure pull infinite loop
This commit is contained in:
1 parent
4ceb4e22d4
commit
0e0d84fea7
1 file changed
+1
-2
@@ -183,7 +183,7 @@ public class Structure implements Serializable {
|
|||||||
|
|
||||||
main:
|
main:
|
||||||
while(worldBlock.isEmpty()) {
|
while(worldBlock.isEmpty()) {
|
||||||
if(loc.getBlockY() > 255 || loc.getBlockY() < 0) return;
|
if(worldBlock.getY() > 255 || worldBlock.getY() < 0) return;
|
||||||
if(block.getPull() == null) break;
|
if(block.getPull() == null) break;
|
||||||
switch(block.getPull()) {
|
switch(block.getPull()) {
|
||||||
case UP:
|
case UP:
|
||||||
@@ -195,7 +195,6 @@ public class Structure implements Serializable {
|
|||||||
default:
|
default:
|
||||||
break main;
|
break main;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
int offset = block.getPullOffset();
|
int offset = block.getPullOffset();
|
||||||
if(offset != 0)
|
if(offset != 0)
|
||||||
|
|||||||
Reference in new issue
Block a user