Stopping gates from updating client side.

This commit is contained in:
SirSengir 2012-07-14 11:25:17 +02:00
parent f6e9377bc5
commit 90cc4999d4
2 changed files with 7 additions and 1 deletions

View file

@ -95,9 +95,10 @@ public class GateVanilla extends Gate {
return "Golden OR Gate";
case OR_4:
return "Diamond OR Gate";
default:
return "";
}
return "";
}
@Override

View file

@ -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();