diff --git a/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/storage/disk/factory/FluidStorageDiskFactory.java b/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/storage/disk/factory/FluidStorageDiskFactory.java index 373529e0d..1ea0d28e9 100644 --- a/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/storage/disk/factory/FluidStorageDiskFactory.java +++ b/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/storage/disk/factory/FluidStorageDiskFactory.java @@ -16,10 +16,6 @@ public class FluidStorageDiskFactory implements IStorageDiskFactory @Override public IStorageDisk createFromNbt(ServerWorld world, CompoundNBT tag) { - if (world == null) { - throw new IllegalArgumentException("World cannot be null"); - } - FluidStorageDisk disk = new FluidStorageDisk(world, tag.getInt(FluidStorageDisk.NBT_CAPACITY)); ListNBT list = tag.getList(FluidStorageDisk.NBT_FLUIDS, Constants.NBT.TAG_COMPOUND); @@ -37,10 +33,6 @@ public class FluidStorageDiskFactory implements IStorageDiskFactory @Override public IStorageDisk create(ServerWorld world, int capacity) { - if (world == null) { - throw new IllegalArgumentException("World cannot be null"); - } - return new FluidStorageDisk(world, capacity); } } diff --git a/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/storage/disk/factory/ItemStorageDiskFactory.java b/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/storage/disk/factory/ItemStorageDiskFactory.java index abac0e336..50054d0fd 100644 --- a/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/storage/disk/factory/ItemStorageDiskFactory.java +++ b/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/storage/disk/factory/ItemStorageDiskFactory.java @@ -17,10 +17,6 @@ public class ItemStorageDiskFactory implements IStorageDiskFactory { @Override public IStorageDisk createFromNbt(ServerWorld world, CompoundNBT tag) { - if (world == null) { - throw new IllegalArgumentException("World cannot be null"); - } - ItemStorageDisk disk = new ItemStorageDisk(world, tag.getInt(ItemStorageDisk.NBT_CAPACITY)); ListNBT list = tag.getList(ItemStorageDisk.NBT_ITEMS, Constants.NBT.TAG_COMPOUND); @@ -38,10 +34,6 @@ public class ItemStorageDiskFactory implements IStorageDiskFactory { @Override public IStorageDisk create(ServerWorld world, int capacity) { - if (world == null) { - throw new IllegalArgumentException("World cannot be null"); - } - return new ItemStorageDisk(world, capacity); } }