Slow down reset time and reset d register

main
Astoria 3 weeks ago
parent 27543642a9
commit 6ace534075

@ -27,7 +27,7 @@ public class CpuEntity extends Peripheral{
public boolean isRunning = false;
public boolean isResetting = false;
public boolean isReset = false;
private int resetTimer = 5;
private int resetTimer = 20;
public CpuEntity(BlockPos pos, BlockState state) {
super(RedControl.CPU_BLOCK_ENTITY, pos, state, 0);
@ -80,7 +80,7 @@ public class CpuEntity extends Peripheral{
isRunning = false;
isResetting = true;
isReset = false;
resetTimer = 5;
resetTimer = 20;
markDirty();
world.updateListeners(pos, this.getCachedState(), this.getCachedState(), Block.NOTIFY_LISTENERS);
}
@ -89,6 +89,7 @@ public class CpuEntity extends Peripheral{
isRunning = false;
isResetting = false;
isReset = false;
resetTimer = 20;
markDirty();
world.updateListeners(pos, this.getCachedState(), this.getCachedState(), Block.NOTIFY_LISTENERS);
}
@ -97,6 +98,7 @@ public class CpuEntity extends Peripheral{
isRunning = true;
isResetting = false;
isReset = false;
resetTimer = 20;
markDirty();
world.updateListeners(pos, this.getCachedState(), this.getCachedState(), Block.NOTIFY_LISTENERS);
}

Loading…
Cancel
Save