Fixed isactive

This commit is contained in:
modmuss50 2015-05-30 08:53:39 +01:00
parent cb541661ad
commit 0f321e2426
2 changed files with 3 additions and 5 deletions

View file

@ -231,6 +231,7 @@ public class RecipeCrafter {
currentTickTime = data.getInteger("currentTickTime");
isactive = data.getBoolean("isActive");
System.out.println(isactive);
}
public void writeToNBT(NBTTagCompound tag) {
@ -244,7 +245,7 @@ public class RecipeCrafter {
}
private boolean isActiveServer() {
return currentRecipe != null && currentTickTime != 0;
return currentRecipe != null;
}
public boolean isActive() {

View file

@ -35,10 +35,7 @@ public class TileMachineBase extends TileEntity {
if (!worldObj.isRemote) {
PacketHandler.sendPacketToAllPlayers(getSyncPacket(),
worldObj);
} else {
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
worldObj.markBlockRangeForRenderUpdate(xCoord, yCoord, zCoord, xCoord, yCoord, zCoord);
}
}
needsSync = false;
ticksSinceLastSync = 0;
}