mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Fix startup Query to actually display (fixed commit).
Signed-off-by: cpw <[email protected]>
This commit is contained in:
4 files changed
+32
-24
No files matched your search
@@ -18,8 +18,7 @@
|
||||
*/
|
||||
|
||||
package net.minecraftforge.fml.client.gui;
|
||||
import net.minecraft.client.gui.GuiOptionButton;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraftforge.fml.ForgeI18n;
|
||||
import net.minecraftforge.fml.StartupQuery;
|
||||
|
||||
public class GuiConfirmation extends GuiNotification
|
||||
@@ -32,23 +31,19 @@ public class GuiConfirmation extends GuiNotification
|
||||
@Override
|
||||
public void initGui()
|
||||
{
|
||||
this.buttons.add(new GuiOptionButton(0, this.width / 2 - 155, this.height - 38, I18n.format("gui.yes"))
|
||||
{
|
||||
public void onClick(double mouseX, double mouseY)
|
||||
this.addButton(new GuiButtonClickConsumer(0, this.width / 2 - 104, this.height - 38, 100, 20, ForgeI18n.parseMessage("gui.yes"),(x, y)->
|
||||
{
|
||||
GuiConfirmation.this.mc.displayGuiScreen(null);
|
||||
GuiConfirmation.this.mc.currentScreen = null;
|
||||
query.setResult(true);
|
||||
query.finish();
|
||||
}
|
||||
});
|
||||
this.buttons.add(new GuiOptionButton(1, this.width / 2 - 155 + 160, this.height - 38, I18n.format("gui.no"))
|
||||
{
|
||||
public void onClick(double mouseX, double mouseY)
|
||||
));
|
||||
this.addButton(new GuiButtonClickConsumer(1, this.width / 2 + 4, this.height - 38, 100, 20, ForgeI18n.parseMessage("gui.no"), (x,y)->
|
||||
{
|
||||
GuiConfirmation.this.mc.displayGuiScreen(null);
|
||||
GuiConfirmation.this.mc.currentScreen = null;
|
||||
query.setResult(false);
|
||||
query.finish();
|
||||
}
|
||||
});
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -637,8 +637,8 @@ public class GameData
|
||||
if (!lst.isEmpty())
|
||||
{
|
||||
LOGGER.error(REGISTRIES,()->new AdvancedLogMessageAdapter(sb->{
|
||||
sb.append("Unidentified mapping from registry").append(name).append('\n');
|
||||
lst.forEach(map->sb.append(" ").append(map.key).append(": ").append(map.id).append('\n'));
|
||||
sb.append("Unidentified mapping from registry ").append(name).append('\n');
|
||||
lst.forEach(map->sb.append('\t').append(map.key).append(": ").append(map.id).append('\n'));
|
||||
}));
|
||||
}
|
||||
event.getAllMappings().stream().filter(e -> e.getAction() == MissingMappings.Action.FAIL).forEach(fail -> failed.put(name, fail.key));
|
||||
|
||||
Reference in new issue
Block a user