Skip to content

Instantly share code, notes, and snippets.

View Sinhika's full-sized avatar
💼
I may be slow to respond.

Sinhika Sinhika

💼
I may be slow to respond.
View GitHub Profile
@Sinhika
Sinhika / Notes_on_porting_to_1.16.1
Last active August 7, 2020 16:02
Notes on porting Minecraft mods from 1.15.2 to 1.16.1 Forge
A number of things to fix when you branch your 1.15.2 code and try to compile it under 1.16.1:
- Client-side GUI methods all have a new argument in front, MatrixStack. It's passed in from the caller and needs to be
passed to most subordinate methods, including blit().
- Use the mapping snapshot for 20200723 or later; before that, the mappings were incomplete in some important areas,
such as client-side GUIs.
- Don't forget to update mods.toml as well as your gradle properties.
A number of things to fix when you branch your 1.15.2 code and try to compile it under 1.16.3:
General
- Use the mapping snapshot for 20200723 or later; before that, the mappings were incomplete in some important areas, such
as client-side GUIs.
- Don't forget to update mods.toml as well as your gradle properties
- The 'license' field is now required in mods.toml.
- A number of Minecraft class paths were changed (such as the Loot stuff). Your IDE should handle that for you.
---- Minecraft Crash Report ----
// Uh... Did I do that?
Time: 2023-07-23 14:49:56
Description: Exception ticking world
org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}
at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}