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