From b7252b0f8b219daf8f5732a453f2f863e0ede533 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Mon, 9 Sep 2024 17:30:56 +0200 Subject: [PATCH 1/3] Fix Spirit Furnace not resuming after drained by hopper Closes #1058 --- .../blockentity/BlockEntitySpiritFurnace.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/cyclops/evilcraft/blockentity/BlockEntitySpiritFurnace.java b/src/main/java/org/cyclops/evilcraft/blockentity/BlockEntitySpiritFurnace.java index bf2595f6a0..79eff818a6 100644 --- a/src/main/java/org/cyclops/evilcraft/blockentity/BlockEntitySpiritFurnace.java +++ b/src/main/java/org/cyclops/evilcraft/blockentity/BlockEntitySpiritFurnace.java @@ -169,7 +169,16 @@ public static CubeDetector getCubeDetector() { @Override protected void addItemHandlerCapabilities() { - LazyOptional itemHandlerBox = LazyOptional.of(() -> new ItemHandlerSlotMasked(getInventory(), SLOTS_DROP)); + LazyOptional itemHandlerBox = LazyOptional.of(() -> new ItemHandlerSlotMasked(getInventory(), SLOTS_DROP) { + @Override + public ItemStack extractItem(int slot, int amount, boolean simulate) { + ItemStack extracted = super.extractItem(slot, amount, simulate); + if (!extracted.isEmpty() && !simulate) { + resetWork(false); + } + return extracted; + } + }); LazyOptional itemHandlerContainer = LazyOptional.of(() -> new ItemHandlerSlotMasked(getInventory(), SLOT_BOX, SLOT_CONTAINER)); addCapabilitySided(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, Direction.UP, itemHandlerBox); addCapabilitySided(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, Direction.DOWN, itemHandlerBox); From 8fd9239418bcbd2e825bd22b2f60a2afe1169d37 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Mon, 9 Sep 2024 17:32:44 +0200 Subject: [PATCH 2/3] Bump mod version --- gradle.properties | 2 +- resources/changelog/1.19.2-1.2.40.txt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 resources/changelog/1.19.2-1.2.40.txt diff --git a/gradle.properties b/gradle.properties index 2acd0204ec..1a6350174c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -mod_version=1.2.39 +mod_version=1.2.40 minecraft_version=1.19.2 forge_version=43.0.8 cyclopscore_version=1.17.0-237 diff --git a/resources/changelog/1.19.2-1.2.40.txt b/resources/changelog/1.19.2-1.2.40.txt new file mode 100644 index 0000000000..c80b6d5a38 --- /dev/null +++ b/resources/changelog/1.19.2-1.2.40.txt @@ -0,0 +1,6 @@ +As always, don't forget to backup your world before updating! +Requires CyclopsCore version 1.17.0 or higher. + +Fixes: +* Fix Spirit Furnace not resuming after drained by hopper, Closes #1058 + From 4fc88b75d7f1838dbfdebb8c842aef681748ce08 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Mon, 9 Sep 2024 17:34:31 +0200 Subject: [PATCH 3/3] Bump mod version --- gradle.properties | 2 +- resources/changelog/1.20.1-1.2.47.txt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 resources/changelog/1.20.1-1.2.47.txt diff --git a/gradle.properties b/gradle.properties index bab5a2639b..6e4629181e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -mod_version=1.2.46 +mod_version=1.2.47 minecraft_version=1.20.1 forge_version=47.2.1 cyclopscore_version=1.18.4-340 diff --git a/resources/changelog/1.20.1-1.2.47.txt b/resources/changelog/1.20.1-1.2.47.txt new file mode 100644 index 0000000000..b20c830219 --- /dev/null +++ b/resources/changelog/1.20.1-1.2.47.txt @@ -0,0 +1,6 @@ +As always, don't forget to backup your world before updating! +Requires CyclopsCore version 1.18.4 or higher. + +Fixes: +* Fix Spirit Furnace not resuming after drained by hopper, Closes #1058 +