mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-18 18:01:17 +02:00
Fix isOnGround issue with shape judgment.
This commit is contained in:
parent
3ad9ba3993
commit
8762d38020
@ -1667,6 +1667,7 @@ public class BlockProperties {
|
||||
if (variable){
|
||||
// Simplistic hot fix attempt for same type + same shape.
|
||||
if (isFullBounds(bounds) || isSameShape(bounds, aboveBounds)){
|
||||
// TODO: Test with cactus.
|
||||
continue;
|
||||
}
|
||||
else{
|
||||
@ -1714,11 +1715,11 @@ public class BlockProperties {
|
||||
for (int i = 0; i < 6; i++){
|
||||
if (bounds1[i] != bounds2[i]){
|
||||
// Simplistic.
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a move determined by xDistance and zDistance is leading down stream.
|
||||
|
Loading…
Reference in New Issue
Block a user