From 29a3340aa2930c181767ba04d3a1668bda5c0678 Mon Sep 17 00:00:00 2001 From: Hea3veN Date: Sat, 30 May 2015 21:25:50 -0300 Subject: [PATCH] fix missing textures errors --- .../textures/blocks/engineBlock/default.png | Bin 0 -> 251 bytes .../textures/blocks/stampingTable/default.png | Bin 0 -> 1865 bytes common/buildcraft/core/BlockBuildTool.java | 5 ++++ .../core/lib/engines/ItemEngine.java | 6 +++++ .../silicon/render/RenderLaserTable.java | 25 ++++++++++++++++-- 5 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 buildcraft_resources/assets/buildcraftcore/textures/blocks/engineBlock/default.png create mode 100755 buildcraft_resources/assets/buildcraftsilicon/textures/blocks/stampingTable/default.png diff --git a/buildcraft_resources/assets/buildcraftcore/textures/blocks/engineBlock/default.png b/buildcraft_resources/assets/buildcraftcore/textures/blocks/engineBlock/default.png new file mode 100644 index 0000000000000000000000000000000000000000..58d42426232e433d22d1d72966b7ec7fa1c3aff3 GIT binary patch literal 251 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!93?!50ihlx9JOMr-u8OiUYD$Wlswz4f>P)&l z>OgVM0*}aI1_o|n5N2eUHAey{$X?><>&kwgRi1}QyJFiqSD=t=W=KSdbAE1aYF-JD z%fR4Vl$uzQnxasiS(2gP?&%wlqL<1J6p!?DaSY+Op3K3;Gc}2$uy@a)2?~d_P6#}j zXgqUa;F%Oo=T#FHDIUIfLBNx3sr2W0Mjh={Rt71muICasIOZNdr64M;aw=g_Nl?$h mrE0aDhc9b;uaRsy;&hWS_LZ0(llw*$knNtXelF{r5}E*aQb%I| literal 0 HcmV?d00001 diff --git a/buildcraft_resources/assets/buildcraftsilicon/textures/blocks/stampingTable/default.png b/buildcraft_resources/assets/buildcraftsilicon/textures/blocks/stampingTable/default.png new file mode 100755 index 0000000000000000000000000000000000000000..22e2c9cf2f4da51f7eada22b15b4d6eba0ace082 GIT binary patch literal 1865 zcmah~c~BE)6ko1j6&S5nQBam3f1R?|hK_w(hNHN)v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ai=_U6^OA^wmcAoulxYBB^OS90pV9y2BhUg#m9v@j#<$k!< zbh1s*pGO_VT7|pZ54&DInNBz_n_d99_NwyMqV|os_0QtxEPEDeig)i^;u>6NJe@#& z6G)P0)+I6?XgoP>SLGKzZWlJ#P3I-2VOK@pHtA@VW@1F8Gui7 zK4js4Y78uPYqWG&Q%uU6pRmKT{JR$W2RC1J4%ddIdGZmLsEBiOx`yG1VavV9N~ik4 zEUxSGlCIVZFN;sk0R7j&&5z!2u=3+)uQzox^1Ml;XYAyo@CMma)(j ym(E2wDiUC&w>S?Z0yMx8umk?b)NeREW@!iT*YNA$MY;LrpPL{!9QkEgV*Xz`WzPBl literal 0 HcmV?d00001 diff --git a/common/buildcraft/core/BlockBuildTool.java b/common/buildcraft/core/BlockBuildTool.java index dd1596ff..c7922fd5 100755 --- a/common/buildcraft/core/BlockBuildTool.java +++ b/common/buildcraft/core/BlockBuildTool.java @@ -10,6 +10,7 @@ package buildcraft.core; import net.minecraft.block.Block; import net.minecraft.block.material.Material; +import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.util.IIcon; import buildcraft.BuildCraftCore; @@ -19,6 +20,10 @@ public class BlockBuildTool extends Block { super(Material.iron); } + @Override + public void registerBlockIcons(IIconRegister itemRegister) { + } + @Override public IIcon getIcon(int i, int j) { return BuildCraftCore.redLaserTexture; diff --git a/common/buildcraft/core/lib/engines/ItemEngine.java b/common/buildcraft/core/lib/engines/ItemEngine.java index ebf040ec..eedfce52 100644 --- a/common/buildcraft/core/lib/engines/ItemEngine.java +++ b/common/buildcraft/core/lib/engines/ItemEngine.java @@ -10,6 +10,7 @@ package buildcraft.core.lib.engines; import net.minecraft.block.Block; import net.minecraft.item.ItemStack; +import net.minecraft.util.IIcon; import buildcraft.core.BCCreativeTab; import buildcraft.core.lib.items.ItemBlockBuildCraft; @@ -34,4 +35,9 @@ public class ItemEngine extends ItemBlockBuildCraft { public String getUnlocalizedName(ItemStack itemstack) { return engineBlock.getUnlocalizedName(itemstack.getItemDamage()); } + + @Override + public IIcon getIconIndex(ItemStack stack) { + return null; + } } diff --git a/common/buildcraft/silicon/render/RenderLaserTable.java b/common/buildcraft/silicon/render/RenderLaserTable.java index 5e59da92..a0c60075 100644 --- a/common/buildcraft/silicon/render/RenderLaserTable.java +++ b/common/buildcraft/silicon/render/RenderLaserTable.java @@ -33,7 +33,6 @@ public class RenderLaserTable implements ISimpleBlockRenderingHandler { renderAssemblyTable(renderer, true, 0, 0, 0, bcBlock); break; case 1: - case 5: renderAdvancedCraftingTable(renderer, true, 0, 0, 0, bcBlock); break; case 2: @@ -45,6 +44,9 @@ public class RenderLaserTable implements ISimpleBlockRenderingHandler { case 4: renderProgrammingTable(renderer, true, 0, 0, 0, bcBlock); break; + case 5: + renderStampingTable(renderer, true, 0, 0, 0, bcBlock); + break; } GL11.glTranslatef(0.5F, 0.5F, 0.5F); } @@ -57,7 +59,6 @@ public class RenderLaserTable implements ISimpleBlockRenderingHandler { renderAssemblyTable(renderer, false, x, y, z, bcBlock); break; case 1: - case 5: renderAdvancedCraftingTable(renderer, false, x, y, z, bcBlock); break; case 2: @@ -69,6 +70,9 @@ public class RenderLaserTable implements ISimpleBlockRenderingHandler { case 4: renderProgrammingTable(renderer, false, x, y, z, bcBlock); break; + case 5: + renderStampingTable(renderer, false, x, y, z, bcBlock); + break; } return true; } @@ -193,6 +197,23 @@ public class RenderLaserTable implements ISimpleBlockRenderingHandler { renderCube(renderer, isInv, x, y, z, 0, 0.1875F, 0, 16, 5, 16, 16, 0, base, 0x3f); // top } + private void renderStampingTable(RenderBlocks renderer, boolean isInv, int x, int y, int z, BlockBuildCraft block) { + if (!isInv && block.getCurrentRenderPass() != 0) { + workaround17(x, y, z); + return; + } + IIcon base = block.getIcon(0, 5); + renderCube(renderer, isInv, x, y, z, 0.125F, 0, 0.125F, 12, 3, 12, 12, 21, base, 0x3d); // bottom (no top) + + // sides (no top) + renderCube(renderer, isInv, x, y, z, 0, 0, 0, 3, 3, 3, 3, 0, base, 0x3d); + renderCube(renderer, isInv, x, y, z, 0, 0, 0.8125F, 3, 3, 3, 3, 0, base, 0x3d); + renderCube(renderer, isInv, x, y, z, 0.8125F, 0, 0, 3, 3, 3, 3, 0, base, 0x3d); + renderCube(renderer, isInv, x, y, z, 0.8125F, 0, 0.8125F, 3, 3, 3, 3, 0, base, 0x3d); + + renderCube(renderer, isInv, x, y, z, 0, 0.1875F, 0, 16, 5, 16, 16, 0, base, 0x3f); // top + } + @Override public boolean shouldRender3DInInventory(int modelId) { return true;