~vpzom/retail

01c4ec8691387e8501a81e4277e1ad17a7ff7404 — Colin Reeder 3 months ago ae3ca21
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);
		}