mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Toolforges are not pattern chests.
This commit is contained in:
1 parent
ed630aa038
commit
3b3f409a2c
1 file changed
+3
-2
@@ -5,6 +5,7 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.client.renderer.*;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import tconstruct.tools.TinkerTools;
|
||||
|
||||
public class TableRender implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
@@ -16,7 +17,7 @@ public class TableRender implements ISimpleBlockRenderingHandler
|
||||
if (modelID == model)
|
||||
{
|
||||
// until we get the new model.. finally...
|
||||
if(metadata >= 5 && metadata <= 9) {
|
||||
if(block == TinkerTools.toolStationWood && metadata >= 5 && metadata <= 9) {
|
||||
// pattern chest
|
||||
renderer.setRenderBounds(0,0,0,1,0.875,1);
|
||||
renderStandardInvBlock(renderer, block, metadata);
|
||||
@@ -43,7 +44,7 @@ public class TableRender implements ISimpleBlockRenderingHandler
|
||||
{
|
||||
int metadata = world.getBlockMetadata(x,y,z);
|
||||
// until we get the new model.. finally...
|
||||
if(metadata >= 5 && metadata <= 9) {
|
||||
if(block == TinkerTools.toolStationWood && metadata >= 5 && metadata <= 9) {
|
||||
// pattern chest
|
||||
renderer.setRenderBounds(0,0,0,1,0.875,1);
|
||||
renderer.renderStandardBlock(block, x,y,z);
|
||||
|
||||
Reference in new issue
Block a user