mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-09 12:10:37 +01: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){
|
if (variable){
|
||||||
// Simplistic hot fix attempt for same type + same shape.
|
// Simplistic hot fix attempt for same type + same shape.
|
||||||
if (isFullBounds(bounds) || isSameShape(bounds, aboveBounds)){
|
if (isFullBounds(bounds) || isSameShape(bounds, aboveBounds)){
|
||||||
|
// TODO: Test with cactus.
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@ -1714,11 +1715,11 @@ public class BlockProperties {
|
|||||||
for (int i = 0; i < 6; i++){
|
for (int i = 0; i < 6; i++){
|
||||||
if (bounds1[i] != bounds2[i]){
|
if (bounds1[i] != bounds2[i]){
|
||||||
// Simplistic.
|
// Simplistic.
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if a move determined by xDistance and zDistance is leading down stream.
|
* Check if a move determined by xDistance and zDistance is leading down stream.
|
||||||
|
Loading…
Reference in New Issue
Block a user