mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
Fix NPE in replace code
This commit is contained in:
1 parent
5b02ef5947
commit
13e28e4322
1 file changed
+3
@@ -121,6 +121,9 @@ public abstract class AbstractItemConduit extends Item implements IConduitItem {
|
||||
}
|
||||
IConduitBundle bundle = (IConduitBundle) te;
|
||||
IConduit existingConduit = bundle.getConduit(getBaseConduitType());
|
||||
if (existingConduit == null) {
|
||||
return false;
|
||||
}
|
||||
ItemStack existingConduitAsItemStack = existingConduit.createItem();
|
||||
if (!ItemUtil.areStacksEqual(existingConduitAsItemStack, stack)) {
|
||||
if (!world.isRemote) {
|
||||
|
||||
Reference in new issue
Block a user