Skip to content

Commit

Permalink
fix render buttons, closes #75, closes #84
Browse files Browse the repository at this point in the history
  • Loading branch information
TheIllusiveC4 committed Nov 9, 2020
1 parent 7ae9cd6 commit a28ad35
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void init() {

public void updateRenderButtons() {
this.buttons.removeIf(widget -> widget instanceof RenderButton);
this.buttons.removeIf(widget -> widget instanceof RenderButton);
this.children.removeIf(widget -> widget instanceof RenderButton);

for (Slot inventorySlot : this.container.inventorySlots) {

Expand Down Expand Up @@ -462,7 +462,7 @@ protected boolean hasClickedOutside(double mouseX, double mouseY, int guiLeftIn,
}

@Override
protected void handleMouseClick(Slot slotIn, int slotId, int mouseButton,
protected void handleMouseClick(@Nonnull Slot slotIn, int slotId, int mouseButton,
@Nonnull ClickType type) {
super.handleMouseClick(slotIn, slotId, mouseButton, type);
this.recipeBookGui.slotClicked(slotIn);
Expand Down

0 comments on commit a28ad35

Please sign in to comment.