diff --git a/tests/src/generated/resources/data/neotests_reloadable_reg_data_maps/data_maps/loot_table/effect_grant.json b/tests/src/generated/resources/data/neotests_reloadable_reg_data_maps/data_maps/loot_table/effect_grant.json index 9c8d5e0de11..ff7693fcb25 100644 --- a/tests/src/generated/resources/data/neotests_reloadable_reg_data_maps/data_maps/loot_table/effect_grant.json +++ b/tests/src/generated/resources/data/neotests_reloadable_reg_data_maps/data_maps/loot_table/effect_grant.json @@ -3,10 +3,6 @@ "minecraft:blocks/copper_block": { "duration": 100, "id": "minecraft:nausea", - "neoforge:cures": [ - "milk", - "protected_by_totem" - ], "show_icon": true } } diff --git a/tests/src/main/java/net/neoforged/neoforge/debug/data/DataMapTests.java b/tests/src/main/java/net/neoforged/neoforge/debug/data/DataMapTests.java index 8d0f52f2db6..1a6c79b64d4 100644 --- a/tests/src/main/java/net/neoforged/neoforge/debug/data/DataMapTests.java +++ b/tests/src/main/java/net/neoforged/neoforge/debug/data/DataMapTests.java @@ -317,8 +317,10 @@ static void reloadableRegDataMaps(final DynamicTest test, final RegistrationHelp reg.addProvider(event -> new DataMapProvider(event.getGenerator().getPackOutput(), event.getLookupProvider()) { @Override protected void gather() { + var effect = new MobEffectInstance(MobEffects.CONFUSION, 100); + effect.getCures().clear(); // Cures use a hash set (not linked) meaning that their serialization is not deterministic builder(effectGrant) - .add(Blocks.COPPER_BLOCK.getLootTable(), new MobEffectInstance(MobEffects.CONFUSION, 100), false); + .add(Blocks.COPPER_BLOCK.getLootTable(), effect, false); } });