Fix onground check

-Full bounds check and check for waterlogged blocks
-OnGround check now works for big dripleaf
-Fix nofall check
Note: There is an inconsistency where waterlogged big dripleafs will block fall damage
This commit is contained in:
ThisTestUser
2022-10-05 16:33:24 -04:00
parent e626fa7144
commit a0c92d5097
2 changed files with 35 additions and 8 deletions

View File

@@ -16,8 +16,8 @@ public class BotUtils {
Material.WATER,
Material.LAVA,
Material.TWISTING_VINES,
Material.VINE,
Material.LADDER,
Material.SWEET_BERRY_BUSH,
Material.POWDER_SNOW,
Material.COBWEB
));
@@ -31,7 +31,7 @@ public class BotUtils {
return randomSteveUUID();
}
public static boolean solidAt(BoundingBox playerBox, BoundingBox blockBox) {
public static boolean overlaps(BoundingBox playerBox, BoundingBox blockBox) {
return playerBox.overlaps(blockBox);
}