mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-18 03:25:38 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
f1dea5460a
commit
f106b5e766
172 files changed
+2552
-2088
No files matched your search
@@ -1,10 +1,12 @@
|
||||
package codechicken.nei.config;
|
||||
|
||||
import codechicken.nei.NEIClientConfig;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
|
||||
import codechicken.nei.NEIClientConfig;
|
||||
|
||||
public class OptionOpenGui extends OptionButton {
|
||||
|
||||
public final Class<? extends GuiScreen> guiClass;
|
||||
|
||||
public OptionOpenGui(String name, Class<? extends GuiScreen> guiClass) {
|
||||
@@ -15,11 +17,10 @@ public class OptionOpenGui extends OptionButton {
|
||||
@Override
|
||||
public boolean onClick(int button) {
|
||||
try {
|
||||
Minecraft.getMinecraft()
|
||||
.displayGuiScreen(guiClass.getConstructor(Option.class).newInstance(this));
|
||||
Minecraft.getMinecraft().displayGuiScreen(guiClass.getConstructor(Option.class).newInstance(this));
|
||||
} catch (Exception e) {
|
||||
NEIClientConfig.logger.error(
|
||||
"Unable to open gui class: " + guiClass.getName() + " from option " + fullName(), e);
|
||||
NEIClientConfig.logger
|
||||
.error("Unable to open gui class: " + guiClass.getName() + " from option " + fullName(), e);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user