Fix crash when opening non-advanced hopper GUI
This commit is contained in:
parent
daddd28d8f
commit
b97e44f816
|
@ -20,12 +20,14 @@ class ContainerInventoryHopper(val hopper: TileEntityInventoryHopper, playerInv:
|
||||||
addSlotToContainer(SlotHopper(hopper, i, 44 + i * 18, 21))
|
addSlotToContainer(SlotHopper(hopper, i, 44 + i * 18, 21))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hopper.advanced) {
|
||||||
for (i in 0..2) {
|
for (i in 0..2) {
|
||||||
addSlotToContainer(SlotItemFilter(hopper, i, -62 + i * 18, 12))
|
addSlotToContainer(SlotItemFilter(hopper, i, -62 + i * 18, 12))
|
||||||
}
|
}
|
||||||
for (i in 0..2) {
|
for (i in 0..2) {
|
||||||
addSlotToContainer(SlotItemFilter(hopper, i + 3, -62 + i * 18, 33))
|
addSlotToContainer(SlotItemFilter(hopper, i + 3, -62 + i * 18, 33))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (l in 0..2) {
|
for (l in 0..2) {
|
||||||
for (k in 0..8) {
|
for (k in 0..8) {
|
||||||
|
|
Loading…
Reference in New Issue