Fix isOnGround issue with shape judgment.

This commit is contained in:
asofold 2013-03-05 21:36:30 +01:00
parent 3ad9ba3993
commit 8762d38020

View File

@ -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.