quick fix : Redundant type cast

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent b34eec4dea
commit 2d13e6185e
84 files changed
+426 -434

No files matched your search

@@ -165,7 +165,7 @@ public class BattlesignGui extends GuiScreen {
@Override
protected void actionPerformed(GuiButton button) {
if (button.id == 0) {
this.mc.displayGuiScreen((GuiScreen) null);
this.mc.displayGuiScreen(null);
this.mc.setIngameFocus();
}
}
@@ -52,7 +52,7 @@ public class PartCrafterGui extends GuiContainer implements INEIGuiHandler {
public PartCrafterGui(
InventoryPlayer inventoryplayer, PartBuilderLogic partlogic, World world, int x, int y, int z) {
super((ActiveContainer) partlogic.getGuiContainer(inventoryplayer, world, x, y, z));
super(partlogic.getGuiContainer(inventoryplayer, world, x, y, z));
logic = partlogic;
drawChestPart = inventorySlots instanceof PartCrafterChestContainer;
@@ -40,7 +40,7 @@ public class ToolStationGui extends GuiContainer implements INEIGuiHandler {
public ToolStationGui(
InventoryPlayer inventoryplayer, ToolStationLogic stationlogic, World world, int x, int y, int z) {
super((ActiveContainer) stationlogic.getGuiContainer(inventoryplayer, world, x, y, z));
super(stationlogic.getGuiContainer(inventoryplayer, world, x, y, z));
this.logic = stationlogic;
toolSlots = (ToolStationContainer) inventorySlots;
text = new GuiTextField(this.fontRendererObj, 83, 8, 30, 12);