fix: set current stack to null when changing gui
continuous-integration/drone/push Build is passing Details

fixes #7
This commit is contained in:
Timo Ley 2023-05-20 21:29:13 +02:00
parent 4a4798738e
commit 0349b88293
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class SlotWorkbenchWand extends Slot {
!this.workbench.getWorldObj().isRemote &&
this.inventory.getStackInSlot(this.getSlotIndex()) != null &&
this.inventory.getStackInSlot(this.getSlotIndex()).getItem() instanceof ItemWandCasting) {
player.inventory.setItemStack(null);
player.openGui(Thaumcraft.instance, 13, this.workbench.getWorldObj(), this.workbench.xCoord, this.workbench.yCoord, this.workbench.zCoord);
}
}