Why is the RegistryKey created repeatedly in FabricDimensionTest? #1613
Answered
by
warjort
xtexChooser
asked this question in
Mod Dev Support
-
In FabricDimensionTest.java(Fabric Test Mod), Line 55: They are all created an RegistryKey and setted to the same field, why? Can I remove the create in |
Beta Was this translation helpful? Give feedback.
Answered by
warjort
Aug 4, 2021
Replies: 1 comment 1 reply
-
Its probably something leftover from refactoring? Test code doesn't usually have the same quality as production code. :-) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xtexChooser
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Its probably something leftover from refactoring?
The code in onInitialize() looks redundant.
Test code doesn't usually have the same quality as production code. :-)