Fix for #1782, cheap basic tools and fixed some warnings here and there
This commit is contained in:
parent
dc8511f1f0
commit
9035e4376a
9 changed files with 29 additions and 37 deletions
|
@ -27,7 +27,7 @@ package techreborn.client.gui;
|
|||
import net.minecraft.client.MinecraftClient;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.recipe.Recipe;
|
||||
import net.minecraft.recipe.CraftingRecipe;
|
||||
import net.minecraft.util.Identifier;
|
||||
import reborncore.client.containerBuilder.builder.BuiltContainer;
|
||||
import reborncore.client.gui.builder.GuiBase;
|
||||
|
@ -57,7 +57,7 @@ public class GuiAutoCrafting extends GuiBase<BuiltContainer> {
|
|||
@Override
|
||||
protected void drawForeground(int mouseX, int mouseY) {
|
||||
super.drawForeground(mouseX, mouseY);
|
||||
Recipe recipe = blockEntityAutoCraftingTable.getIRecipe();
|
||||
CraftingRecipe recipe = blockEntityAutoCraftingTable.getIRecipe();
|
||||
if (recipe != null) {
|
||||
renderItemStack(recipe.getOutput(), 95, 42);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ import net.minecraft.container.Container;
|
|||
import net.minecraft.text.LiteralText;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
public class GuiDestructoPack extends AbstractContainerScreen {
|
||||
public class GuiDestructoPack extends AbstractContainerScreen<Container> {
|
||||
|
||||
private static final Identifier texture = new Identifier("techreborn",
|
||||
"textures/gui/destructopack.png");
|
||||
|
@ -53,7 +53,7 @@ public class GuiDestructoPack extends AbstractContainerScreen {
|
|||
|
||||
@Override
|
||||
protected void drawForeground(int arg0, int arg1) {
|
||||
String name = I18n.translate("item.techreborn.part.destructoPack.name");
|
||||
String name = I18n.translate("item.techreborn.destructopack");
|
||||
font.draw(name, containerWidth / 2 - font.getStringWidth(name) / 2, 5, 4210752);
|
||||
this.font.draw(I18n.translate("container.inventory"), 8, this.containerHeight - 96 + 2,
|
||||
4210752);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue