Skip to content

Commit

Permalink
[ui] remove hideSlot methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gliscowo committed Oct 23, 2024
1 parent 46600fd commit 2f860a6
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/main/java/io/wispforest/owo/ui/base/BaseOwoHandledScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,25 +87,6 @@ protected void init() {
}
}

/**
* Moves the slot with the given index off the screen
* to prevent player intractability when disabled or enabled
*
* @param index The index of the slot to disable
*/
protected void hideSlot(int index) {
hideSlot(this.handler.slots.get(index));
}

/**
* Moves the slot off the screen to prevent player
* intractability when disabled or enabled
*/
protected void hideSlot(Slot slot) {
((SlotAccessor) slot).owo$setX(-300);
((SlotAccessor) slot).owo$setY(-300);
}

/**
* Disable the slot at the given index. Note
* that this is hard override and the slot cannot
Expand Down

0 comments on commit 2f860a6

Please sign in to comment.