-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Labels
bugAn error, misspell, incorrect information, or other issueAn error, misspell, incorrect information, or other issuetriageNeeds attention for triaging and proper assignment of labelsNeeds attention for triaging and proper assignment of labels
Description
Minecraft version: 1.21.5
Mappings version: 2025.04.19
Using the net.minecraft.core.Direction enum leads to errors during the mapping process. I created a small project to demonstrate the problem: https://gitlab.com/osechet/broken-mod
The first commit uses the mdk and only change the mapping_channel to parchment. Everything works. The second commit adds a Block that uses the Direction enum in switch. It creates an error (logs):
ABlock.java:38: error: cannot find symbol
return switch (dir) {
^
symbol: method values()
location: class Direction
1 error
The third commit revert the mapping to official and the build passes.
If I replace the switch by an if/else if, it works. The problem is due to the missing values() method that is expected in an enum.
I didn't try other enums but I guess the problem would be the same.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn error, misspell, incorrect information, or other issueAn error, misspell, incorrect information, or other issuetriageNeeds attention for triaging and proper assignment of labelsNeeds attention for triaging and proper assignment of labels