Skip to content

Commit

Permalink
Hide unimplemented entity gear fields (#1635)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peregrine05 authored and leMaik committed Oct 4, 2023
1 parent 25fa9be commit 360654e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chunky/src/java/se/llbit/chunky/ui/render/EntitiesTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,11 @@ else if(entity instanceof BeaconBeam) {
});
gearField.setText(geared.getGear(slot).get("id").stringValue(""));
slotBox.getChildren().addAll(new Label(slot + ":"), gearField);
// Hide these fields to avoid user confusion because they do not actually work.
if (slot.equals("leftHand") || slot.equals("rightHand")) {
slotBox.setVisible(false);
slotBox.setManaged(false);
}
controls.getChildren().add(slotBox);
}
}
Expand Down

0 comments on commit 360654e

Please sign in to comment.