mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-25 06:24:24 +00:00
#1843 another isRemote check
This commit is contained in:
1 parent
d33ab8a329
commit
1631aa4c20
1 file changed
+6
-6
@@ -87,13 +87,13 @@ public abstract class AbstractItemConduit extends Item implements IConduitItem {
|
||||
System.out.println("AbstractItemConduit.onItemUse: Bundle null");
|
||||
return false;
|
||||
}
|
||||
IConduit con = createConduit(stack, player);
|
||||
if(con == null) {
|
||||
System.out.println("AbstractItemConduit.onItemUse: Conduit null.");
|
||||
return false;
|
||||
}
|
||||
if(bundle.getConduit(con.getBaseConduitType()) == null) {
|
||||
if(!bundle.hasType(getBaseConduitType())) {
|
||||
if(!world.isRemote) {
|
||||
IConduit con = createConduit(stack, player);
|
||||
if(con == null) {
|
||||
System.out.println("AbstractItemConduit.onItemUse: Conduit null.");
|
||||
return false;
|
||||
}
|
||||
bundle.addConduit(con);
|
||||
if(!player.capabilities.isCreativeMode) {
|
||||
stack.stackSize--;
|
||||
|
||||
Reference in new issue
Block a user