We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working on net/minecraft/village/TradeOffers$EnchantBookFactory on QuiltMC/quilt-mappings@3f6043b
net/minecraft/village/TradeOffers$EnchantBookFactory
Proposed param names don't always propagate through constructors, and you can end up with a "ghost" proposal from a previous name that was reset.
I think these issues are just "visual" issues in the editor.
static class EnchantBookFactory implements TradeOffers.Factory { private final int experience; private final TagKey<Enchantment> f_fykexdki; private final int minLevel; private final int maxLevel; public EnchantBookFactory(int experience, TagKey<Enchantment> arg) { this(experience, 0, Integer.MAX_VALUE, arg); } public EnchantBookFactory(int experience, int minLevel, int maxLevel, TagKey<Enchantment> arg) { this.minLevel = minLevel; this.maxLevel = maxLevel; this.experience = experience; this.f_fykexdki = arg; } //... }
change propagates to the second constructor, but not the first
static class EnchantBookFactory implements TradeOffers.Factory { private final int experience; private final TagKey<Enchantment> enchantmentPool; private final int minLevel; private final int maxLevel; public EnchantBookFactory(int experience, TagKey<Enchantment> arg) { this(experience, 0, Integer.MAX_VALUE, arg); } public EnchantBookFactory(int experience, int minLevel, int maxLevel, TagKey<Enchantment> enchantmentPool) { this.minLevel = minLevel; this.maxLevel = maxLevel; this.experience = experience; this.enchantmentPool = enchantmentPool; } //... }
static class EnchantBookFactory implements TradeOffers.Factory { private final int experience; private final TagKey<Enchantment> enchantmentPool; private final int minLevel; private final int maxLevel; public EnchantBookFactory(int experience, TagKey<Enchantment> TEMP) { this(experience, 0, Integer.MAX_VALUE, TEMP); } public EnchantBookFactory(int experience, int minLevel, int maxLevel, TagKey<Enchantment> enchantmentPool) { this.minLevel = minLevel; this.maxLevel = maxLevel; this.experience = experience; this.enchantmentPool = enchantmentPool; } //... }
it ends up with the correct name
static class EnchantBookFactory implements TradeOffers.Factory { private final int experience; private final TagKey<Enchantment> enchantmentPool; private final int minLevel; private final int maxLevel; public EnchantBookFactory(int experience, TagKey<Enchantment> enchantmentPool) { this(experience, 0, Integer.MAX_VALUE, enchantmentPool); } public EnchantBookFactory(int experience, int minLevel, int maxLevel, TagKey<Enchantment> enchantmentPool) { this.minLevel = minLevel; this.maxLevel = maxLevel; this.experience = experience; this.enchantmentPool = enchantmentPool; } //... }
change propagates to the second constructor, but not the first, as in 2.
static class EnchantBookFactory implements TradeOffers.Factory { private final int experience; private final TagKey<Enchantment> f_fykexdki; private final int minLevel; private final int maxLevel; public EnchantBookFactory(int experience, TagKey<Enchantment> enchantmentPool) { this(experience, 0, Integer.MAX_VALUE, enchantmentPool); } public EnchantBookFactory(int experience, int minLevel, int maxLevel, TagKey<Enchantment> arg) { this.minLevel = minLevel; this.maxLevel = maxLevel; this.experience = experience; this.f_fykexdki = arg; } //... }
static class EnchantBookFactory implements TradeOffers.Factory { private final int experience; private final TagKey<Enchantment> f_fykexdki; private final int minLevel; private final int maxLevel; public EnchantBookFactory(int experience, TagKey<Enchantment> TEMP) { this(experience, 0, Integer.MAX_VALUE, TEMP); } public EnchantBookFactory(int experience, int minLevel, int maxLevel, TagKey<Enchantment> arg) { this.minLevel = minLevel; this.maxLevel = maxLevel; this.experience = experience; this.f_fykexdki = arg; } //... }
TEMP gets reset to enchantmentPool, despite that name appearing nowhere else.
TEMP
enchantmentPool
Restarting the editor makes it go back to arg as expected.
arg
The text was updated successfully, but these errors were encountered:
ix0rai
No branches or pull requests
Working on
net/minecraft/village/TradeOffers$EnchantBookFactory
on QuiltMC/quilt-mappings@3f6043bProposed param names don't always propagate through constructors, and you can end up with a "ghost" proposal from a previous name that was reset.
I think these issues are just "visual" issues in the editor.
0. Start state
1. Name `f_fykexdki` -> `enchantmentPool` (no propagation)
change propagates to the second constructor, but not the first
2. Give first constructor param a temp name so it can be reset to obfuscated
3. Reset `TEMP` to obfuscated
it ends up with the correct name
4. Reset `enchantmentPool` field to obfuscated (no propagation)
change propagates to the second constructor, but not the first, as in 2.
5. Repeat 2.
6. Repeat 3. ("ghost" proposal)
TEMP
gets reset toenchantmentPool
, despite that name appearing nowhere else.Restarting the editor makes it go back to
arg
as expected.The text was updated successfully, but these errors were encountered: