Skip to content

Commit

Permalink
fix: correct yOffset for trapdoors to be a bit lower
Browse files Browse the repository at this point in the history
Tested in 1.8.8 and 1.21.1 and in both versions the offset
was too low. So I've changed it a bit.
  • Loading branch information
SpraxDev committed Aug 17, 2024
1 parent b971a8e commit 7510fa4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public static double getSitOffset(Block block, boolean sitsOnArmorStand, ChairNM
XMaterial blockType = XMaterial.matchXMaterial(block.getType());

if (blockType.name().endsWith("_TRAPDOOR")) {
yOffset = -0.125;
yOffset = -0.25;
}

return -1.2 + yOffset + (sitsOnArmorStand ? 0 : 1);
Expand Down

0 comments on commit 7510fa4

Please sign in to comment.