1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 11:45:51 +00:00

Fixed IllegalArgumentException when try to push null item from a ReactorAccessPort

Fixes https://github.com/TheBusyBiscuit/Slimefun4/issues/338
This commit is contained in:
Poslovitch 2017-08-12 16:26:19 +02:00
parent 54b8f59ccd
commit 1d901c940f

View File

@ -369,7 +369,7 @@ public abstract class AReactor extends SlimefunItem {
if (port != null) { if (port != null) {
for (int slot: getOutputSlots()) { for (int slot: getOutputSlots()) {
BlockStorage.getInventory(l).replaceExistingItem(slot, ReactorAccessPort.pushItems(port.getLocation(), BlockStorage.getInventory(l).getItemInSlot(slot))); if (BlockStorage.getInventory(l).getItemInSlot(slot) != null) BlockStorage.getInventory(l).replaceExistingItem(slot, ReactorAccessPort.pushItems(port.getLocation(), BlockStorage.getInventory(l).getItemInSlot(slot)));
} }
} }