From bd7bfbbf2b52da5377f3766f2ee491d24c131cc7 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Thu, 24 Oct 2024 14:33:02 +0200 Subject: [PATCH] Fix spawned Weather Containers not working in Envir Acc, Closes #1067 --- .../core/recipe/type/RecipeEnvironmentalAccumulator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/cyclops/evilcraft/core/recipe/type/RecipeEnvironmentalAccumulator.java b/src/main/java/org/cyclops/evilcraft/core/recipe/type/RecipeEnvironmentalAccumulator.java index 6f1849e82c..73016430b4 100644 --- a/src/main/java/org/cyclops/evilcraft/core/recipe/type/RecipeEnvironmentalAccumulator.java +++ b/src/main/java/org/cyclops/evilcraft/core/recipe/type/RecipeEnvironmentalAccumulator.java @@ -117,7 +117,9 @@ public ItemStack assemble(RecipeEnvironmentalAccumulator.Inventory inv, HolderLo ItemStack itemStack = getResultItem(registryAccess).copy(); if (!inputStack.isEmpty()) { for (DataComponentType dataComponentType : inputStack.getComponents().keySet()) { - itemStack.set((DataComponentType) dataComponentType, inputStack.get(dataComponentType)); + if (dataComponentType != RegistryEntries.COMPONENT_WEATHER_CONTAINER_TYPE.value()) { + itemStack.set((DataComponentType) dataComponentType, inputStack.get(dataComponentType)); + } } } return itemStack;