Skip to content

Commit

Permalink
Update AutoRenamingTool, remove SuppressForbidden annotation patches,
Browse files Browse the repository at this point in the history
and update SetCustomModelDataFunction patch to use a cast
  • Loading branch information
coehlrich committed Nov 8, 2024
1 parent 8316876 commit a6291ea
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 57 deletions.
2 changes: 1 addition & 1 deletion versions/snapshot/1.21/24w45a/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"jvmargs": []
},
"rename": {
"version": "net.neoforged:AutoRenamingTool:2.0.4:all",
"version": "net.neoforged:AutoRenamingTool:2.0.5:all",
"args": ["--input", "{input}", "--output", "{output}", "--map", "{mappings}", "--cfg", "{libraries}", "--ann-fix", "--ids-fix", "--src-fix", "--record-fix", "--unfinal-params"]
},
"bundler_extract_jar": {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class SetCustomModelDataFunction extends LootItemConditionalFunction {
private static final Codec<NumberProvider> COLOR_PROVIDER_CODEC = Codec.withAlternative(
- NumberProviders.CODEC, ExtraCodecs.RGB_COLOR_CODEC, ConstantValue::new
+ NumberProviders.CODEC, ExtraCodecs.RGB_COLOR_CODEC, integer -> new ConstantValue((float) integer)
+ NumberProviders.CODEC, ExtraCodecs.RGB_COLOR_CODEC, (Function<Integer, NumberProvider>)ConstantValue::new
);
public static final MapCodec<SetCustomModelDataFunction> CODEC = RecordCodecBuilder.mapCodec(
p_386432_ -> commonFields(p_386432_)

0 comments on commit a6291ea

Please sign in to comment.