mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Mark dirty when saving redstone state
This commit is contained in:
parent
4340881896
commit
576148ae95
2 changed files with 1 additions and 1 deletions
|
@ -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){
|
||||
|
|
|
@ -124,6 +124,7 @@ public abstract class TileEntityBase extends TileEntity{
|
|||
|
||||
public void setRedstonePowered(boolean powered){
|
||||
this.isRedstonePowered = powered;
|
||||
this.markDirty();
|
||||
}
|
||||
|
||||
protected boolean sendUpdateWithInterval(){
|
||||
|
|
Loading…
Reference in a new issue