mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-07 03:02:11 +01:00
Fix isOnGround stopping loop with "walls".
This commit is contained in:
parent
7adef83687
commit
3ad9ba3993
@ -1598,6 +1598,7 @@ public class BlockProperties {
|
||||
for (int y = iMinY; y <= iMaxY; y++){
|
||||
|
||||
// TODO: Remember the state of the last block below instead of checking the block above.
|
||||
// TODO: Alternatively optimize: block-above-check: use loop up to iMaxY...
|
||||
|
||||
final int id = access.getTypeId(x, y, z);
|
||||
final long flags = blockFlags[id];
|
||||
@ -1616,6 +1617,7 @@ public class BlockProperties {
|
||||
continue;
|
||||
}
|
||||
|
||||
// TODO: Make this one work (passable workaround).
|
||||
// // Check if the block can be passed through with the bounding box (disregard the ignore flag).
|
||||
// if (isPassableWorkaround(access, x, y, z, minX - x, minY - y, minZ - z, id, maxX - minX, maxY - minY, maxZ - minZ, 1.0)){
|
||||
// // Spider !
|
||||
@ -1648,7 +1650,7 @@ public class BlockProperties {
|
||||
// Check if it is the same id (walls!) and similar.
|
||||
if (!variable && id == aboveId){
|
||||
// Exclude stone walls "quickly".
|
||||
return false;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Check against spider type hacks.
|
||||
|
Loading…
Reference in New Issue
Block a user