From 8be193c943c82cb7255d87acc0f85deaec18f0d6 Mon Sep 17 00:00:00 2001 From: Matyrobbrt Date: Fri, 27 Dec 2024 21:12:30 +0200 Subject: [PATCH] Thanks tests --- .../data_maps/loot_table/effect_grant.json | 4 ---- .../java/net/neoforged/neoforge/debug/data/DataMapTests.java | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) 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); } });