Fixed isactive
This commit is contained in:
parent
cb541661ad
commit
0f321e2426
2 changed files with 3 additions and 5 deletions
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue