mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +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
|
@Override
|
||||||
public boolean test(Extent extent, BlockVector3 pos) {
|
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
|
@Nullable
|
||||||
|
Loading…
Reference in New Issue
Block a user