fix textures not updating clientside

This commit is contained in:
Raoul Van den Berge
2016-01-01 16:41:40 +01:00
parent 8a60165516
commit 68a4dc7534
3 changed files with 16 additions and 4 deletions

View File

@@ -101,8 +101,7 @@ public class TileDetector extends TileMachine implements IInventory, ISidedInven
if (powered != lastPowered)
{
worldObj.markBlockForUpdate(pos);
worldObj.notifyBlockOfStateChange(pos, StorageCraftBlocks.DETECTOR);
worldObj.notifyBlockOfStateChange(pos, StorageCraftBlocks.DETECTOR); // @TODO: redstone update
}
}
}
@@ -191,7 +190,14 @@ public class TileDetector extends TileMachine implements IInventory, ISidedInven
compare = buf.readInt();
mode = buf.readInt();
amount = buf.readInt();
boolean lastPowered = powered;
powered = buf.readBoolean();
if (powered != lastPowered) {
worldObj.markBlockForUpdate(pos);
}
}
@Override