Skip to content

Commit

Permalink
Remove the old smeltery stuff that was meant for comatibility, becaus…
Browse files Browse the repository at this point in the history
…e it's too complicated to separately keep it in.
  • Loading branch information
bonii-xx committed Sep 11, 2014
1 parent cdd28f6 commit 448d29e
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 2,184 deletions.
7 changes: 1 addition & 6 deletions src/main/java/tconstruct/smeltery/SmelteryProxyClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ void registerRenderer ()
RenderingRegistry.registerBlockHandler(new BlockRenderCastingChannel());

if (!PHConstruct.newSmeltery) {
if(PHConstruct.oldSmeltery)
RenderingRegistry.registerBlockHandler(new SmelteryRenderOld());
else
RenderingRegistry.registerBlockHandler(new SmelteryRender());
RenderingRegistry.registerBlockHandler(new SmelteryRender());
}

ClientRegistry.bindTileEntitySpecialRenderer(CastingTableLogic.class, new CastingTableSpecialRenderer());
Expand Down Expand Up @@ -121,8 +118,6 @@ public Object getClientGuiElement (int ID, EntityPlayer player, World world, int
{
if (PHConstruct.newSmeltery)
return new AdaptiveSmelteryGui(player.inventory, (AdaptiveSmelteryLogic) world.getTileEntity(x, y, z), world, x, y, z);
else if(PHConstruct.oldSmeltery)
return new SmelteryGuiOld(player.inventory, (SmelteryLogicOld) world.getTileEntity(x, y, z), world, x, y, z);
else
return new SmelteryGui(player.inventory, (SmelteryLogic) world.getTileEntity(x, y, z), world, x, y, z);
}
Expand Down
5 changes: 1 addition & 4 deletions src/main/java/tconstruct/smeltery/TinkerSmeltery.java
Original file line number Diff line number Diff line change
Expand Up @@ -707,10 +707,7 @@ public void preInit (FMLPreInitializationEvent event)
}
else
{
if(PHConstruct.oldSmeltery)
GameRegistry.registerTileEntity(SmelteryLogicOld.class, "TConstruct.Smeltery");
else
GameRegistry.registerTileEntity(SmelteryLogic.class, "TConstruct.Smeltery");
GameRegistry.registerTileEntity(SmelteryLogic.class, "TConstruct.Smeltery");
GameRegistry.registerTileEntity(SmelteryDrainLogic.class, "TConstruct.SmelteryDrain");
}
GameRegistry.registerTileEntity(MultiServantLogic.class, "TConstruct.Servants");
Expand Down
6 changes: 0 additions & 6 deletions src/main/java/tconstruct/smeltery/blocks/SmelteryBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
import net.minecraft.world.*;
import tconstruct.TConstruct;
import tconstruct.library.TConstructRegistry;
import tconstruct.library.crafting.Smeltery;
import tconstruct.smeltery.SmelteryProxyCommon;
import tconstruct.smeltery.logic.*;
import tconstruct.smeltery.model.SmelteryRender;
import tconstruct.smeltery.model.SmelteryRenderOld;
import tconstruct.util.config.PHConstruct;

public class SmelteryBlock extends InventoryBlock
Expand Down Expand Up @@ -50,8 +48,6 @@ public SmelteryBlock(String prefix)
@Override
public int getRenderType ()
{
if(PHConstruct.oldSmeltery)
return SmelteryRenderOld.smelteryModel;
return PHConstruct.newSmeltery ? 0 : SmelteryRender.smelteryModel;
}

Expand Down Expand Up @@ -243,8 +239,6 @@ public TileEntity createNewTileEntity (World world, int metadata)
case 0:
if (PHConstruct.newSmeltery)
return new AdaptiveSmelteryLogic();
else if(PHConstruct.oldSmeltery)
return new SmelteryLogicOld();
else
return new SmelteryLogic();

Expand Down
Loading

0 comments on commit 448d29e

Please sign in to comment.