Skip to content

Commit

Permalink
Hide unimplemented entity gear fields (chunky-dev#1635)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peregrine05 authored Sep 26, 2023
1 parent 00b7d6d commit 39956ce
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,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 39956ce

Please sign in to comment.