Mystical World

Mystical World

24M Downloads

Registry Names on Loot Conditions around the wrong way? (1.18)

trabpukcip opened this issue ยท 1 comments

commented

While trying my best to understand loot conditions looking at source code, these 2 lines in ModLoot.java looked like the names could be switched around.

I.e. "is_obsidian" and "is_lava" are assigned to the wrong things.

Is this intentional behaviour?

public static final RegistryObject<LootItemConditionType> IS_OBSIDIAN = CONDITIONS.register("is_lava", () -> new LootItemConditionType(new IsObsidianCondition.ObsidianSerializer()));
public static final RegistryObject<LootItemConditionType> IS_LAVA = CONDITIONS.register("is_obsidian", () -> new LootItemConditionType(new IsLavaCondition.LavaSerializer()));

commented

That would be a bug rather than a feature.