Fix crash with null slots
1 files changed, 1 insertions(+), 1 deletions(-) M src/main/java/click/vpzom/mods/retail/VendingBlockScreenHandler.java
M src/main/java/click/vpzom/mods/retail/VendingBlockScreenHandler.java => src/main/java/click/vpzom/mods/retail/VendingBlockScreenHandler.java +1 -1
@@ 93,7 93,7 @@ public class VendingBlockScreenHandler extends ScreenHandler { return current; } if((!isCreative && slotIdx < VendingBlockEntity.REAL_INV_SIZE) || slot.inventory != inventory) { if((!isCreative && slotIdx < VendingBlockEntity.REAL_INV_SIZE) || slot == null || slot.inventory != inventory) { return super.onSlotClick(slotIdx, actionData, actionType, player); }