Mark dirty when saving redstone state

This commit is contained in:
Ellpeck 2015-12-25 15:24:40 +01:00
parent 4340881896
commit 576148ae95
2 changed files with 1 additions and 1 deletions

View file

@ -116,7 +116,6 @@ public abstract class BlockContainerBase extends BlockContainer{
boolean powered = world.isBlockIndirectlyGettingPowered(x, y, z);
if(tile instanceof TileEntityBase){
((TileEntityBase)tile).setRedstonePowered(powered);
tile.markDirty();
}
if(tile instanceof IRedstoneToggle){
if(((IRedstoneToggle)tile).isPulseMode() && powered){

View file

@ -124,6 +124,7 @@ public abstract class TileEntityBase extends TileEntity{
public void setRedstonePowered(boolean powered){
this.isRedstonePowered = powered;
this.markDirty();
}
protected boolean sendUpdateWithInterval(){