mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fix offset mask (< and >)
This commit is contained in:
parent
8b1a0bbc34
commit
a2b0a5e622
@ -88,7 +88,11 @@ public class OffsetMask extends AbstractMask {
|
||||
|
||||
@Override
|
||||
public boolean test(Extent extent, BlockVector3 pos) {
|
||||
return getMask().test(extent, pos);
|
||||
BlockVector3 testPos = pos.add(offset);
|
||||
if (testPos.getBlockY() < 0 || testPos.getBlockY() > 255) {
|
||||
return false;
|
||||
}
|
||||
return getMask().test(extent, pos.add(offset));
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
Loading…
Reference in New Issue
Block a user