This commit is contained in:
PrototypeTrousers
2023-02-02 16:19:56 -03:00
parent 58a6dabb20
commit 17c38a6418
6 changed files with 32 additions and 13 deletions
@@ -241,7 +241,14 @@ public enum GuiBridge implements IGuiHandler {
it = player.inventory.getStackInSlot(x);
}
} else {
it = BaublesApi.getBaublesHandler(player).getStackInSlot(x);
if (stem) {
if (player.openContainer instanceof IInventorySlotAware) {
int slot = ((IInventorySlotAware)player.openContainer).getInventorySlot();
it = BaublesApi.getBaublesHandler(player).getStackInSlot(slot);
}
}else {
it = BaublesApi.getBaublesHandler(player).getStackInSlot(x);
}
}
final Object myItem = this.getGuiObject(it, player, w, x, y, z);
if (myItem != null && ID.CorrectTileOrPart(myItem)) {