Fix Inventory Tweaks woes (#2447)

This commit is contained in:
Thanh-Phuong
2020-04-26 04:15:37 -04:00
committed by GitHub
parent e72f1b64bc
commit 98ed5b89c2

View File

@@ -57,7 +57,17 @@ public abstract class ContainerBase extends Container {
} }
protected void addPlayerInventory(int xInventory, int yInventory) { protected void addPlayerInventory(int xInventory, int yInventory) {
int id = 0; int id = 9;
for (int y = 0; y < 3; y++) {
for (int x = 0; x < 9; x++) {
addSlotToContainer(new Slot(player.inventory, id, xInventory + x * 18, yInventory + y * 18));
id++;
}
}
id = 0;
for (int i = 0; i < 9; i++) { for (int i = 0; i < 9; i++) {
int x = xInventory + i * 18; int x = xInventory + i * 18;
@@ -71,14 +81,6 @@ public abstract class ContainerBase extends Container {
id++; id++;
} }
for (int y = 0; y < 3; y++) {
for (int x = 0; x < 9; x++) {
addSlotToContainer(new Slot(player.inventory, id, xInventory + x * 18, yInventory + y * 18));
id++;
}
}
} }
public List<SlotFilterFluid> getFluidSlots() { public List<SlotFilterFluid> getFluidSlots() {