Skip to content

Commit

Permalink
Fix DryingRack
Browse files Browse the repository at this point in the history
  • Loading branch information
nevercast committed Oct 1, 2013
1 parent 9a6ace2 commit 19d2ebe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tconstruct/blocks/logic/DryingRackLogic.java
Expand Up @@ -39,7 +39,7 @@ protected String getDefaultName ()
@Override
public void updateEntity ()
{
if (maxTime > 0 && currentTime < maxTime)
if (!worldObj.isRemote && maxTime > 0 && currentTime < maxTime)
{
currentTime++;
if (currentTime >= maxTime)
Expand Down Expand Up @@ -79,16 +79,16 @@ public void updateDryingTime ()
@Override
public void readFromNBT (NBTTagCompound tags)
{
tags.setInteger("Time", currentTime);
tags.setInteger("MaxTime", maxTime);
currentTime = tags.getInteger("Time");
maxTime = tags.getInteger("MaxTime");
readCustomNBT(tags);
}

@Override
public void writeToNBT (NBTTagCompound tags)
{
currentTime = tags.getInteger("Time");
maxTime = tags.getInteger("MaxTime");
tags.setInteger("Time", currentTime);
tags.setInteger("MaxTime", maxTime);
writeCustomNBT(tags);
}

Expand Down

0 comments on commit 19d2ebe

Please sign in to comment.