mishanguc-1.6.5-alpha.1-1.21.1.jar
Curse Maven Snippet
What's new
- Fixed the issue that the mod is incompatible with Forge/NeoForge and Sinytra Connector in 1.20.1 and 1.21.1.
- In 1.21.1, in the
methodmethod in the mixin annotation, no matter the specified value is a single method namefindCrosshairTarget(Yarn mapping), or a full method signature, the intermediary name remapped by Yarn only contains method namemethod_56153, and then when remapped by Sinytra Connector into official mapping, the method name ispick. In Yarn mapping, in theGameRendererclass, the method namedfindCrosshairTargetis only one, but in the official mapping, in theGameRendererclass, the methods namedpickare more than one (corresponding tofindCrosshairTargetandupdateCrosshairTargetin the Yarn mapping), so the target cannot be correctly located, causing the mixin to encounter errors. To solve this issue, I addedtarget = @Desc(...)into the code to help the game correctly find the method to apply mixin. - In 1.20.1, the
BeaconBlockEntityclass has only one method namedtickin both Yarn and official mappings, and Yarn correctly remaps it tomethod_16896. However, in the mod remapped by Sinytra Connector, the method name is stillmethod_16896, which is abnormal in Forge. To solve this issue, the relevant mixins have been set to be silently ignored, so exceptions will not be thrown when they are found, and the relevant mixins will not be applied in this case. This also means that, in 1.20.1, when using Forge/NeoForge and Sinytra Connector to run Mishang Urban Construction, custom-colored glass blocks and other blocks cannot tint beacon beams. If Sinytra Connector is updated in the future, this issue may be resolved.
- In 1.21.1, in the
This mod has no additional files