UniversalCraft icon indicating copy to clipboard operation
UniversalCraft copied to clipboard

Update preprocessor

Open Johni0702 opened this issue 6 months ago • 0 comments

Latest preprocessor has two new features which UC can make good use of:

  1. "Strict extra mapping files" allow (well, require, with automatic inference where possible) one to specify exact types for method mappings (e.g. translate(DDD)V to translated(), but translate(FFF)V to translatef()), allowing us to use extra mappings for a bunch more things which previously had to use preprocessor statements.
  2. It will now try to infer class mappings for srg-era Minecraft versions based on shared method/field names, allowing us to get rid of a bunch of manually entered class mappings.

It also gained a cleanupUnnecessaryMappings task which will automatically remove any mapping entries which don't do anything (be it because of point 2, or because they were broken or redundant to begin with).

This also fixes UGraphics.blendEquation inappropriately bypassing GlStateManager on 1.12.2.

Johni0702 avatar Aug 05 '24 06:08 Johni0702