mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-15 12:01:51 +01:00
Fixe fence gates with fence corners (allow checking for further flags).
This commit is contained in:
parent
c70da72654
commit
a2e4db7c94
@ -1670,8 +1670,12 @@ public class BlockProperties {
|
||||
return true; // 0.125
|
||||
}
|
||||
}
|
||||
else if ((flags & F_PASSABLE_X4) != 0) {
|
||||
if ((access.getData(bx, by, bz) & 0x4) != 0) {
|
||||
else if ((flags & F_PASSABLE_X4) != 0 && (access.getData(bx, by, bz) & 0x4) != 0) {
|
||||
// (Allow checking further entries.)
|
||||
return true;
|
||||
}
|
||||
else if ((flags & F_THICK_FENCE) != 0) {
|
||||
if (!collidesFence(fx, fz, dX, dZ, dT, 0.425)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -1680,12 +1684,6 @@ public class BlockProperties {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if ((flags & F_THICK_FENCE) != 0) {
|
||||
// TODO: Re-check if cobble fence is now like this.
|
||||
if (!collidesFence(fx, fz, dX, dZ, dT, 0.425)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (id == Material.CAKE_BLOCK.getId()) {
|
||||
if (Math.min(fy, fy + dY * dT) >= 0.4375) {
|
||||
return true; // 0.0625 = 0.125 / 2
|
||||
|
Loading…
Reference in New Issue
Block a user