kept players yaw and pitch while walking through a gate; saving of actual gate size (preventing resizing of gates after creation); all credit goes to s1m0ne
This commit is contained in:
@ -45,7 +45,7 @@ public class FloodUtil {
|
||||
if (blocks1.size() > blocks2.size()) {
|
||||
return blocks2;
|
||||
}
|
||||
|
||||
|
||||
return blocks1;
|
||||
}
|
||||
|
||||
@ -54,8 +54,10 @@ public class FloodUtil {
|
||||
return null;
|
||||
}
|
||||
|
||||
//System.out.println("limit: " + limit);
|
||||
if (foundBlocks.size() > limit) {
|
||||
return null;
|
||||
System.out.println("Exceeding gate size limit.");
|
||||
return null;
|
||||
}
|
||||
|
||||
if (foundBlocks.contains(startBlock)) {
|
||||
@ -68,11 +70,13 @@ public class FloodUtil {
|
||||
|
||||
// ... And flood away !
|
||||
for (BlockFace face : expandFaces) {
|
||||
Block potentialBlock = startBlock.getFace(face);
|
||||
Block potentialBlock = startBlock.getRelative(face);
|
||||
foundBlocks = getAirFloodBlocks(potentialBlock, foundBlocks, expandFaces, limit);
|
||||
}
|
||||
}
|
||||
|
||||
if (foundBlocks != null) {
|
||||
//System.out.println("size: " + foundBlocks.size());
|
||||
}
|
||||
return foundBlocks;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user