diff --git a/src/main/java/techreborn/client/gui/GuiCentrifuge.java b/src/main/java/techreborn/client/gui/GuiCentrifuge.java index 752b88e95..35e607160 100644 --- a/src/main/java/techreborn/client/gui/GuiCentrifuge.java +++ b/src/main/java/techreborn/client/gui/GuiCentrifuge.java @@ -1,5 +1,6 @@ package techreborn.client.gui; +import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.client.resources.I18n; import net.minecraft.entity.player.EntityPlayer; @@ -43,4 +44,14 @@ public class GuiCentrifuge extends GuiContainer { this.fontRendererObj.drawString(centrifuge.tickTime + " " + centrifuge.isRunning, 110, this.ySize - 96 + 2, 4210752); } + + @Override + public void initGui() { + + this.buttonList.clear(); + int k = (this.width - this.xSize) / 2; + int l = (this.height - this.ySize) / 2; + this.buttonList.add(new GuiButton(0, k + 4, l + 4, 20, 20, "R")); + super.initGui(); + } } diff --git a/src/main/java/techreborn/compat/nei/CentrifugeRecipeHandler.java b/src/main/java/techreborn/compat/nei/CentrifugeRecipeHandler.java index adc657685..6934b5a8f 100644 --- a/src/main/java/techreborn/compat/nei/CentrifugeRecipeHandler.java +++ b/src/main/java/techreborn/compat/nei/CentrifugeRecipeHandler.java @@ -140,7 +140,7 @@ public class CentrifugeRecipeHandler extends TemplateRecipeHandler { public void loadTransferRects() { this.transferRects.add(new TemplateRecipeHandler.RecipeTransferRect( - new Rectangle(75, 22, 15, 13), "tr.centrifuge", new Object[0])); + new Rectangle(0, 0, 20, 20), "tr.centrifuge", new Object[0])); } public void loadCraftingRecipes(String outputId, Object... results)