fix: fixed forge hammers getting stuck in an infinite update loop when placed next to eachother
@@ -176,14 +176,17 @@ public class HammerBaseTile extends TileEntity implements ITickableTileEntity {
public void updateRedstonePower() {
if (world != null) {
- redstonePower = 0;
+ int updatedPower = 0;
for(Direction direction : Direction.values()) {
- redstonePower += world.getRedstonePower(pos.offset(direction), direction);
+ updatedPower += world.getRedstonePower(pos.offset(direction), direction);
}
+ if (updatedPower != redstonePower){
+ redstonePower = updatedPower;
sync();
}
}
+ }
private int tickrate() {
// one powered side = 40 tickrate, two powered sides = 20 tickrate
