From 31f3aff11f7e1754fc7377f907efc2bff0ecdc4a Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Thu, 12 Oct 2017 21:51:07 +0100 Subject: [PATCH] Remove ghost upgrade slots on some machines. --- src/main/java/techreborn/tiles/TileIronAlloyFurnace.java | 7 ++++++- .../tiles/fusionReactor/TileFusionControlComputer.java | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/java/techreborn/tiles/TileIronAlloyFurnace.java b/src/main/java/techreborn/tiles/TileIronAlloyFurnace.java index 12f5c72d7..e1dfdeb1f 100644 --- a/src/main/java/techreborn/tiles/TileIronAlloyFurnace.java +++ b/src/main/java/techreborn/tiles/TileIronAlloyFurnace.java @@ -31,10 +31,10 @@ import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.*; import net.minecraft.util.EnumFacing; +import reborncore.api.IToolDrop; import reborncore.api.recipe.IBaseRecipeType; import reborncore.api.recipe.RecipeHandler; import reborncore.api.tile.IInventoryProvider; -import reborncore.api.IToolDrop; import reborncore.common.recipes.RecipeTranslator; import reborncore.common.registration.RebornRegistry; import reborncore.common.tile.TileLegacyMachineBase; @@ -364,4 +364,9 @@ public class TileIronAlloyFurnace extends TileLegacyMachineBase .syncIntegerValue(this::getCookTime, this::setCookTime) .syncIntegerValue(this::getCurrentItemBurnTime, this::setCurrentItemBurnTime).addInventory().create(this); } + + @Override + public boolean canBeUpgraded() { + return false; + } } diff --git a/src/main/java/techreborn/tiles/fusionReactor/TileFusionControlComputer.java b/src/main/java/techreborn/tiles/fusionReactor/TileFusionControlComputer.java index 6e6df25b6..70be5a335 100644 --- a/src/main/java/techreborn/tiles/fusionReactor/TileFusionControlComputer.java +++ b/src/main/java/techreborn/tiles/fusionReactor/TileFusionControlComputer.java @@ -389,4 +389,9 @@ public class TileFusionControlComputer extends TilePowerAcceptor implements IToo public ItemStack getToolDrop(EntityPlayer p0) { return new ItemStack(ModBlocks.FUSION_CONTROL_COMPUTER, 1); } + + @Override + public boolean canBeUpgraded() { + return false; + } }