diff --git a/mods/tinker/tconstruct/client/event/EventCloakRender.java b/mods/tinker/tconstruct/client/event/EventCloakRender.java deleted file mode 100644 index 274ce63f..00000000 --- a/mods/tinker/tconstruct/client/event/EventCloakRender.java +++ /dev/null @@ -1,70 +0,0 @@ -package mods.tinker.tconstruct.client.event; - -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.net.MalformedURLException; -import java.net.URL; -import java.net.URLConnection; -import java.util.HashMap; - -import net.minecraft.client.Minecraft; -import net.minecraft.client.renderer.ImageBufferDownload; -import net.minecraftforge.client.event.RenderPlayerEvent; -import net.minecraftforge.event.ForgeSubscribe; - -public class EventCloakRender { - - private final String serverLocation = "https://raw.github.com/mDiyo/TinkersConstruct/master/capes.txt"; - private final int timeout = 1000; - - private HashMap cloaks = new HashMap(); - - public EventCloakRender(){ - buildCloakURLDatabase(); - } - - @ForgeSubscribe - public void onPreRenderSpecials(RenderPlayerEvent.Specials.Pre event){ - String cloakURL = cloaks.get(event.entityPlayer.username); -// System.out.println(cloakURL); - if(cloakURL != null){ - event.entityPlayer.cloakUrl = cloakURL; - event.renderCape = true; - } - } - - public void buildCloakURLDatabase(){ - URL url; - try { - url = new URL(serverLocation); - URLConnection con = url.openConnection(); - con.setConnectTimeout(timeout); - con.setReadTimeout(timeout); - InputStream io = con.getInputStream(); - BufferedReader br = new BufferedReader(new InputStreamReader(io)); - - String str; - int linetracker = 1; - while((str = br.readLine()) != null){ - if(str.contains(":")){ - String nick = str.substring(0, str.indexOf(":")); - String link = str.substring(str.indexOf(":") + 1); - cloaks.put(nick, link); - Minecraft.getMinecraft().renderEngine.obtainImageData(link, new ImageBufferDownload()); - }else{ - System.err.println("[TinkersConstruct] [skins.txt] Syntax error on line " + linetracker + ": " + str); - } - linetracker++; - } - - br.close(); - } catch (MalformedURLException e) { - e.printStackTrace(); - } catch (IOException e) { - e.printStackTrace(); - } - } - -} diff --git a/tconstruct/blocks/LavaTankBlock.java b/tconstruct/blocks/LavaTankBlock.java index b7a3907a..1d5dddd4 100644 --- a/tconstruct/blocks/LavaTankBlock.java +++ b/tconstruct/blocks/LavaTankBlock.java @@ -108,6 +108,8 @@ public class LavaTankBlock extends BlockContainer public Icon getIcon (int side, int meta) { + if (meta >= 3) + meta = 0; if (meta == 0) { if (side == 0 || side == 1) diff --git a/tconstruct/blocks/logic/GlowstoneAggregator.java b/tconstruct/blocks/logic/GlowstoneAggregator.java index 151cef7e..70a37dce 100644 --- a/tconstruct/blocks/logic/GlowstoneAggregator.java +++ b/tconstruct/blocks/logic/GlowstoneAggregator.java @@ -34,7 +34,7 @@ public class GlowstoneAggregator extends AggregatorLogic implements IActiveLogic } @Override - protected String getDefaultName () + protected String getDefaultName ()NContent { return "aggregator.glowstone"; } diff --git a/tconstruct/common/TContent.java b/tconstruct/common/TContent.java index 5fc9a853..92f223fe 100644 --- a/tconstruct/common/TContent.java +++ b/tconstruct/common/TContent.java @@ -1903,6 +1903,19 @@ public class TContent implements IFuelHandler GameRegistry.addRecipe(new ItemStack(slimeGel, 1, 1), "##", "##", '#', Item.slimeBall); GameRegistry.addRecipe(new ItemStack(Item.slimeBall, 4, 0), "#", '#', new ItemStack(slimeGel, 1, 1)); + //Slab crafters + GameRegistry.addRecipe(new ItemStack(craftingSlabWood, 6, 0), "bbb", 'b', new ItemStack(Block.workbench)); + GameRegistry.addRecipe(new ItemStack(craftingSlabWood, 1, 1), "b", 'b', new ItemStack(toolStationWood, 1, 0)); + GameRegistry.addRecipe(new ItemStack(craftingSlabWood, 1, 2), "b", 'b', new ItemStack(toolStationWood, 1, 1)); + GameRegistry.addRecipe(new ItemStack(craftingSlabWood, 1, 2), "b", 'b', new ItemStack(toolStationWood, 1, 2)); + GameRegistry.addRecipe(new ItemStack(craftingSlabWood, 1, 2), "b", 'b', new ItemStack(toolStationWood, 1, 3)); + GameRegistry.addRecipe(new ItemStack(craftingSlabWood, 1, 2), "b", 'b', new ItemStack(toolStationWood, 1, 4)); + GameRegistry.addRecipe(new ItemStack(craftingSlabWood, 1, 4), "b", 'b', new ItemStack(toolStationWood, 1, 5)); + GameRegistry.addRecipe(new ItemStack(craftingSlabWood, 1, 3), "b", 'b', new ItemStack(toolStationWood, 1, 10)); + GameRegistry.addRecipe(new ItemStack(craftingSlabWood, 1, 3), "b", 'b', new ItemStack(toolStationWood, 1, 11)); + GameRegistry.addRecipe(new ItemStack(craftingSlabWood, 1, 3), "b", 'b', new ItemStack(toolStationWood, 1, 12)); + GameRegistry.addRecipe(new ItemStack(craftingSlabWood, 1, 3), "b", 'b', new ItemStack(toolStationWood, 1, 13)); + GameRegistry.addRecipe(new ItemStack(craftingSlabWood, 1, 5), "b", 'b', new ItemStack(toolForge, 1, Short.MAX_VALUE)); } void setupToolTabs ()