diff --git a/src/main/java/one/oth3r/sit/utl/Utl.java b/src/main/java/one/oth3r/sit/utl/Utl.java index a3c9286..f74ac7f 100644 --- a/src/main/java/one/oth3r/sit/utl/Utl.java +++ b/src/main/java/one/oth3r/sit/utl/Utl.java @@ -44,6 +44,7 @@ import java.util.List; public class Utl { private static double BED_HEIGHT = 0.5625; + private static double DRIED_GHAST_HEIGHT = 0.625; /** * check if a block is obstructed (no collision) @@ -173,6 +174,10 @@ public class Utl { return BED_HEIGHT; } + // why not sit on the dried ghast? + if (Registries.BLOCK.getEntry(block).getIdAsString().equals("minecraft:dried_ghast")) + return DRIED_GHAST_HEIGHT; + // make sure that the block that is being sit on has no interaction when hand sitting if (hit != null && blockIsInList(config.getInteractionBlocks(), blockState)) { return null; @@ -228,7 +233,7 @@ public class Utl { // get the blockstate BlockState blockState = player.getWorld().getBlockState(blockPos); // check if the block is still there & the block is a valid sit block (by checking if there is a sit height for the block) - return !blockState.isAir() && (getSittingHeight(player,blockPos,null) != null || blockState.isIn(TagKey.of(Registries.BLOCK.getKey(), Identifier.tryParse("minecraft:beds")))); + return !blockState.isAir() && getSittingHeight(player,blockPos,null) != null; } /**