make detector work again
This commit is contained in:
@@ -36,6 +36,14 @@ public class TileDetector extends TileMachine implements IInventory, ISidedInven
|
||||
this.redstoneControlled = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisconnected()
|
||||
{
|
||||
super.onDisconnected();
|
||||
|
||||
powered = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEnergyUsage()
|
||||
{
|
||||
@@ -101,7 +109,6 @@ public class TileDetector extends TileMachine implements IInventory, ISidedInven
|
||||
|
||||
if (powered != lastPowered)
|
||||
{
|
||||
worldObj.markBlockForUpdate(pos);
|
||||
worldObj.notifyNeighborsOfStateChange(pos, StorageCraftBlocks.DETECTOR);
|
||||
}
|
||||
}
|
||||
@@ -199,7 +206,6 @@ public class TileDetector extends TileMachine implements IInventory, ISidedInven
|
||||
if (powered != lastPowered)
|
||||
{
|
||||
worldObj.markBlockForUpdate(pos);
|
||||
worldObj.notifyNeighborsOfStateChange(pos, StorageCraftBlocks.DETECTOR);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user