From b1767d260f3b0f589804d7b13cf15b699fd4e576 Mon Sep 17 00:00:00 2001 From: Phillip Pham Date: Tue, 15 Oct 2024 06:12:22 -0400 Subject: [PATCH] [1.20.4] Added logic to cancel hopper and growth tick operations when the botany pot has a redstone signal --- .../net/darkhax/botanypots/block/BlockEntityBotanyPot.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/src/main/java/net/darkhax/botanypots/block/BlockEntityBotanyPot.java b/common/src/main/java/net/darkhax/botanypots/block/BlockEntityBotanyPot.java index 1db6bd13..7747cb23 100644 --- a/common/src/main/java/net/darkhax/botanypots/block/BlockEntityBotanyPot.java +++ b/common/src/main/java/net/darkhax/botanypots/block/BlockEntityBotanyPot.java @@ -223,6 +223,12 @@ public static void tickPot(Level level, BlockPos pos, BlockState state, BlockEnt return; } + // Disable pot operations when given a redstone signal. + if (pot.getLevel().hasNeighborSignal(pos)) { + + return; + } + pot.getInventory().update(); final Soil soil = pot.getSoil();