mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-28 03:17:53 +01:00
isOnGround: Fix for flags.
This commit is contained in:
parent
f7d9441174
commit
354511b88f
@ -1605,7 +1605,6 @@ public class BlockProperties {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
// Might collide.
|
||||
final double[] bounds = access.getBounds(x, y, z);
|
||||
if (bounds == null){
|
||||
@ -1627,13 +1626,13 @@ public class BlockProperties {
|
||||
}
|
||||
final int aboveId = access.getTypeId(x, y + 1, z);
|
||||
final long aboveFlags = blockFlags[aboveId];
|
||||
if ((flags & F_IGN_PASSABLE) != 0){
|
||||
// Ignore these.
|
||||
if ((flags & aboveFlags & F_IGN_PASSABLE) != 0){
|
||||
// Ignore these (Note for above block check before ground property).
|
||||
// TODO: Should this always apply ?
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((aboveFlags & F_GROUND) == 0 || (aboveFlags & ignoreFlags) != 0){
|
||||
if ((aboveFlags & F_GROUND) == 0 || (aboveFlags & F_LIQUID) != 0 || (aboveFlags & ignoreFlags) != 0){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user