From c197f653ac731d6d3c4229dc433b8064c780bed1 Mon Sep 17 00:00:00 2001 From: Flanks255 <32142731+Flanks255@users.noreply.github.com> Date: Sat, 30 Nov 2024 09:14:16 -0600 Subject: [PATCH] Possible fix for super rare stack overflow. --- .../mod/blocks/base/BlockContainerBase.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/base/BlockContainerBase.java b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/base/BlockContainerBase.java index 5203cc812..e0431e4ed 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/base/BlockContainerBase.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/base/BlockContainerBase.java @@ -154,13 +154,10 @@ public abstract class BlockContainerBase extends Block implements EntityBlock { boolean powered = world.getBestNeighborSignal(pos) > 0; boolean wasPowered = base.isRedstonePowered; if (powered && !wasPowered) { + base.setRedstonePowered(true); if (base.respondsToPulses()) { - // TODO: [port] eval what this does? :D - // world.scheduleUpdate(pos, this, this.tickRate(world)); - // Who knows -Flanks base.activateOnPulse(); } - base.setRedstonePowered(true); } else if (!powered && wasPowered) { base.setRedstonePowered(false); }