mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 00:17:27 +00:00
Move Inventory Slots
This commit is contained in:
1 parent
b671757b55
commit
0e9bbdcdac
1 file changed
+3
-2
@@ -33,12 +33,13 @@ public class ContainerCustomGui extends Container {
|
||||
public void setGui(ScriptGui gui, EntityPlayer player) {
|
||||
this.customGui = gui;
|
||||
|
||||
|
||||
slotCount=0;
|
||||
inventorySlots.clear();
|
||||
if (this.customGui.getShowPlayerInv()) {
|
||||
this.addPlayerInventory(player, this.customGui.getPlayerInvX(), this.customGui.getPlayerInvY());
|
||||
}
|
||||
|
||||
slotCount=0;
|
||||
// inventorySlots.clear();
|
||||
for (IItemSlot slot : this.customGui.getSlots()) {
|
||||
if (slot.hasStack()) {
|
||||
this.addSlot(player, slot.getPosX(), slot.getPosY(), slot, slot.getStack().getMCItemStack(), player.worldObj.isRemote);
|
||||
|
||||
Reference in new issue
Block a user