mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-13 15:08:35 +00:00
upstream: Update upstream (#1430)
* upstream: Update upstream c407471 Re-add class shutter with tweaks. (1947) * upstream: Update Upstream 29f1c66 If a trace hits the world limit, cancel it (1942) * upstream: Update upstream 511daa5 Update paperweight dev bundle
This commit is contained in:
@ -170,17 +170,15 @@ public class TargetBlock {
|
||||
* @return Block
|
||||
*/
|
||||
public Location getAnyTargetBlock() {
|
||||
boolean searchForLastBlock = true;
|
||||
Location lastBlock = null;
|
||||
while (getNextBlock() != null) {
|
||||
if (stopMask.test(targetPos)) {
|
||||
break;
|
||||
} else {
|
||||
if (searchForLastBlock) {
|
||||
lastBlock = getCurrentBlock();
|
||||
if (lastBlock.getBlockY() <= world.getMinY() || lastBlock.getBlockY() >= world.getMaxY()) {
|
||||
searchForLastBlock = false;
|
||||
}
|
||||
lastBlock = getCurrentBlock();
|
||||
if (lastBlock.getBlockY() < world.getMinY()
|
||||
|| lastBlock.getBlockY() > world.getMaxY()) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user