Skip to content

Commit

Permalink
Thanks tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matyrobbrt committed Dec 27, 2024
1 parent 412378c commit 8be193c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
"minecraft:blocks/copper_block": {
"duration": 100,
"id": "minecraft:nausea",
"neoforge:cures": [
"milk",
"protected_by_totem"
],
"show_icon": true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});

Expand Down

0 comments on commit 8be193c

Please sign in to comment.