generated from tilera/1710mod
fix: set current stack to null when changing gui
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
fixes #7
This commit is contained in:
parent
4a4798738e
commit
0349b88293
|
@ -30,6 +30,7 @@ class SlotWorkbenchWand extends Slot {
|
||||||
!this.workbench.getWorldObj().isRemote &&
|
!this.workbench.getWorldObj().isRemote &&
|
||||||
this.inventory.getStackInSlot(this.getSlotIndex()) != null &&
|
this.inventory.getStackInSlot(this.getSlotIndex()) != null &&
|
||||||
this.inventory.getStackInSlot(this.getSlotIndex()).getItem() instanceof ItemWandCasting) {
|
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);
|
player.openGui(Thaumcraft.instance, 13, this.workbench.getWorldObj(), this.workbench.xCoord, this.workbench.yCoord, this.workbench.zCoord);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue