Stopping gates from updating client side.
This commit is contained in:
parent
f6e9377bc5
commit
90cc4999d4
2 changed files with 7 additions and 1 deletions
|
@ -95,9 +95,10 @@ public class GateVanilla extends Gate {
|
|||
return "Golden OR Gate";
|
||||
case OR_4:
|
||||
return "Diamond OR Gate";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -22,6 +22,7 @@ import net.minecraft.src.ItemStack;
|
|||
import net.minecraft.src.NBTTagCompound;
|
||||
import net.minecraft.src.TileEntity;
|
||||
import net.minecraft.src.World;
|
||||
import net.minecraft.src.buildcraft.api.APIProxy;
|
||||
import net.minecraft.src.buildcraft.api.Action;
|
||||
import net.minecraft.src.buildcraft.api.BuildCraftAPI;
|
||||
import net.minecraft.src.buildcraft.api.IActionReceptor;
|
||||
|
@ -194,6 +195,10 @@ public class Pipe implements IPipe, IDropControlInventory {
|
|||
internalUpdateScheduled = false;
|
||||
}
|
||||
|
||||
// Do not try to update gates client side.
|
||||
if(APIProxy.isRemote())
|
||||
return;
|
||||
|
||||
if (actionTracker.markTimeIfDelay(worldObj, 10))
|
||||
resolveActions();
|
||||
|
||||
|
|
Loading…
Reference in a new issue