Stack can't be null

This commit is contained in:
Raoul Van den Berge
2016-11-26 23:21:37 +01:00
parent 21cfd6cd20
commit dd9857cf48

View File

@@ -576,7 +576,7 @@ public class TileController extends TileBase implements INetworkMaster, IRedston
@Override
public ItemStack insertItem(@Nonnull ItemStack stack, int size, boolean simulate) {
if (stack == null || (stack != null && stack.isEmpty()) || itemStorage.getStorages().isEmpty()) {
if (stack.isEmpty() || itemStorage.getStorages().isEmpty()) {
return ItemHandlerHelper.copyStackWithSize(stack, size);
}