mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +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);
|
boolean powered = world.isBlockIndirectlyGettingPowered(x, y, z);
|
||||||
if(tile instanceof TileEntityBase){
|
if(tile instanceof TileEntityBase){
|
||||||
((TileEntityBase)tile).setRedstonePowered(powered);
|
((TileEntityBase)tile).setRedstonePowered(powered);
|
||||||
tile.markDirty();
|
|
||||||
}
|
}
|
||||||
if(tile instanceof IRedstoneToggle){
|
if(tile instanceof IRedstoneToggle){
|
||||||
if(((IRedstoneToggle)tile).isPulseMode() && powered){
|
if(((IRedstoneToggle)tile).isPulseMode() && powered){
|
||||||
|
|
|
@ -124,6 +124,7 @@ public abstract class TileEntityBase extends TileEntity{
|
||||||
|
|
||||||
public void setRedstonePowered(boolean powered){
|
public void setRedstonePowered(boolean powered){
|
||||||
this.isRedstonePowered = powered;
|
this.isRedstonePowered = powered;
|
||||||
|
this.markDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean sendUpdateWithInterval(){
|
protected boolean sendUpdateWithInterval(){
|
||||||
|
|
Loading…
Reference in a new issue