From 6ace5340758bea56bfa69b34bfb4458e718e87da Mon Sep 17 00:00:00 2001 From: Astoria Date: Sat, 13 Apr 2024 15:28:22 -0500 Subject: [PATCH] Slow down reset time and reset d register --- .../net/brokenmoon/redcontrol/blockentities/CpuEntity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/brokenmoon/redcontrol/blockentities/CpuEntity.java b/src/main/java/net/brokenmoon/redcontrol/blockentities/CpuEntity.java index 42574c4..3b75dff 100644 --- a/src/main/java/net/brokenmoon/redcontrol/blockentities/CpuEntity.java +++ b/src/main/java/net/brokenmoon/redcontrol/blockentities/CpuEntity.java @@ -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); }