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

Merge pull request #389 from Poslovitch/338-fix

Fixed IllegalArgumentException when try to push null item from a ReactorAccessPort
This commit is contained in:
TheBusyBiscuit 2017-08-12 23:18:21 +02:00 committed by GitHub
commit cd34d6d563

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)));
} }
} }