Skip to content

Commit

Permalink
Fix HitBox of ascending powered rails on 1.7.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Axionize committed Sep 28, 2024
1 parent 4e135e3 commit 8cfb9f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public enum HitboxData {
StateType railType = data.getType();
// Activator rails always appear as flat detector rails in 1.7.10 because of ViaVersion
// Ascending power rails in 1.7 have flat rail hitbox https://bugs.mojang.com/browse/MC-9134
if (railType == StateTypes.ACTIVATOR_RAIL || railType == StateTypes.POWERED_RAIL) {
if (railType == StateTypes.ACTIVATOR_RAIL || (railType == StateTypes.POWERED_RAIL && data.isPowered())) {
return new SimpleCollisionBox(0.0F, 0.0F, 0.0F, 1.0F, 0.125F, 1.0F, false);
}
return new SimpleCollisionBox(0.0F, 0.0F, 0.0F, 1.0F, 0.625F, 1.0F, false);
Expand Down

0 comments on commit 8cfb9f0

Please sign in to comment.