mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-16 10:34:40 +00:00
Merge pull request #1345 from way2muchnoise/master
put setPrivate in constructor for BetterAchievements compatibility
This commit is contained in:
commit
54f2831663
1 file changed
+1
-1
@@ -21,12 +21,12 @@ public class GuiAchievementsHacky extends GuiAchievements {
|
||||
|
||||
public GuiAchievementsHacky(GuiScreen p_i45026_1_, StatFileWriter p_i45026_2_) {
|
||||
super(p_i45026_1_, p_i45026_2_);
|
||||
ReflectionHelper.setPrivateValue(GuiAchievements.class, this, ModAchievements.pageIndex, "currentPage");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initGui() {
|
||||
super.initGui();
|
||||
ReflectionHelper.setPrivateValue(GuiAchievements.class, this, ModAchievements.pageIndex, "currentPage");
|
||||
((GuiButton) buttonList.get(1)).displayString = ModAchievements.botaniaPage.getName();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user