Skip to content

Commit

Permalink
Fix spawned Weather Containers not working in Envir Acc, Closes #1067
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Oct 24, 2024
1 parent 73e4d01 commit bd7bfbb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bd7bfbb

Please sign in to comment.