You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
noeppi-noeppi opened this issue
Jul 9, 2023
· 0 comments
· Fixed by #9633
Labels
1.20BugThis request reports or fixes a new or existing bug.ConfirmedThis request has been verified to be factually correct by at least one member of the team.
ForgeLoadingOverlay.java uses a static import on a vanilla class (import static net.minecraft.util.Mth.clamp;). Since Srg2Source does not support static imports (see MinecraftForge/Srg2Source#28), this is not properly renamed to a SRG name.
This causes a recompile error when using mappings other than official, as the methods are still named clamp instead of their actual name in the used mapping set.
Proposed solution
Get rid of the static import in ForgeLoadingOverlay.java and write it out as Mth.clamp, so that Srg2Source can properly rename it to its SRG name.
The text was updated successfully, but these errors were encountered:
noeppi-noeppi
added
the
Triage
This request requires the active attention of the Triage Team. Requires labelling or reviews.
label
Jul 9, 2023
AterAnimAvis
added
Bug
This request reports or fixes a new or existing bug.
Confirmed
This request has been verified to be factually correct by at least one member of the team.
1.20
labels
Jul 10, 2023
1.20BugThis request reports or fixes a new or existing bug.ConfirmedThis request has been verified to be factually correct by at least one member of the team.
Minecraft Version: 1.20.1
Forge Version: 47.1.0
Description of issue:
ForgeLoadingOverlay.java uses a static import on a vanilla class (
import static net.minecraft.util.Mth.clamp;
). Since Srg2Source does not support static imports (see MinecraftForge/Srg2Source#28), this is not properly renamed to a SRG name.Because of this, the published forge
sources
-jar (https://maven.minecraftforge.net/net/minecraftforge/forge/1.20.1-47.1.0/forge-1.20.1-47.1.0-sources.jar), which should contain everything remapped to SRG won't have this import remapped.This causes a recompile error when using mappings other than
official
, as the methods are still namedclamp
instead of their actual name in the used mapping set.Proposed solution
Get rid of the static import in
ForgeLoadingOverlay.java
and write it out asMth.clamp
, so that Srg2Source can properly rename it to its SRG name.The text was updated successfully, but these errors were encountered: