Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Fixed issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
LeandroPA committed Jul 13, 2017
1 parent a3918e7 commit d5bf0fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/me/tuke/sktuke/listeners/GUIListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ public void start() {
SkriptGUIEvent.getInstance().register(this);
}
}
public void setInventory(Inventory inv) {
gui = inv;
}
private boolean isAllowedType(ClickType ct){
if (ct != null)
switch(ct){
Expand Down
1 change: 1 addition & 0 deletions src/me/tuke/sktuke/manager/gui/v2/GUIInventory.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public GUIInventory changeProperties(String newName, int newSize, String newRawS
inv = InventoryUtils.newInventory(inv.getType(), newSize, newName);
if (inv == null)
return this; //Safe check only, it doesn't happen
getListener().setInventory(inv);
inv.setContents(copy);
viewers.forEach(human -> {
ItemStack cursor = human.getItemOnCursor();
Expand Down

0 comments on commit d5bf0fe

Please sign in to comment.