Skip to content

Commit

Permalink
fix: display hopper state only for hopper carts
Browse files Browse the repository at this point in the history
  • Loading branch information
2No2Name committed Jul 22, 2022
1 parent c87af7a commit bc6da9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mendedminecarts/MinecartDisplayData.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public ArrayList<Text> getInfoTexts() {
if (MendedMinecartsMod.DISPLAY_CART_DATA_WOBBLE.isEnabled()) {
infoTexts.add(new TranslatableText("mendedminecarts.wobble").append(": ").append(String.format(getDoubleFormatString(), this.wobble())));
}
if (MendedMinecartsMod.DISPLAY_CART_DATA_HOPPER_CART_LOCKED.isEnabled()) {
if (MendedMinecartsMod.DISPLAY_CART_DATA_HOPPER_CART_LOCKED.isEnabled() && this.entity() instanceof HopperMinecartEntity) {
infoTexts.add(new TranslatableText("mendedminecarts.hopper_locked").append(": ").append(String.valueOf(this.hopperLocked())));
}

Expand Down

0 comments on commit bc6da9b

Please sign in to comment.