Skip to content

Commit

Permalink
Make AttributeTemplater ecord public
Browse files Browse the repository at this point in the history
  • Loading branch information
TelepathicGrunt committed Nov 26, 2024
1 parent 3ddaffa commit ae5c52b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/net/minecraft/world/effect/MobEffect.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
}

- static record AttributeTemplate(ResourceLocation id, double amount, AttributeModifier.Operation operation) {
+ static record AttributeTemplate(ResourceLocation id, double amount, AttributeModifier.Operation operation, @Nullable it.unimi.dsi.fastutil.ints.Int2DoubleFunction curve) {
+ public static record AttributeTemplate(ResourceLocation id, double amount, AttributeModifier.Operation operation, @Nullable it.unimi.dsi.fastutil.ints.Int2DoubleFunction curve) {
+
+ public AttributeTemplate(ResourceLocation id, double amount, AttributeModifier.Operation operation) {
+ this(id, amount, operation, null);
Expand Down

0 comments on commit ae5c52b

Please sign in to comment.