From 84d3cd6948aa7412cdea1e42a00a8d314b83cf80 Mon Sep 17 00:00:00 2001 From: SpaceToad Date: Thu, 20 Feb 2014 08:43:05 +0100 Subject: [PATCH] fixed block urbanist rendering --- .../builders/urbanism/BlockUrbanist.java | 17 +++++++++++++++++ .../buildcraft/energy/BlockEnergyEmitter.java | 5 ----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/common/buildcraft/builders/urbanism/BlockUrbanist.java b/common/buildcraft/builders/urbanism/BlockUrbanist.java index 87113e08..48307b1d 100755 --- a/common/buildcraft/builders/urbanism/BlockUrbanist.java +++ b/common/buildcraft/builders/urbanism/BlockUrbanist.java @@ -11,7 +11,9 @@ package buildcraft.builders.urbanism; import net.minecraft.block.material.Material; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.tileentity.TileEntity; +import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; +import net.minecraftforge.common.util.ForgeDirection; import buildcraft.BuildCraftBuilders; import buildcraft.core.BlockBuildCraft; import buildcraft.core.CreativeTabBuildCraft; @@ -42,4 +44,19 @@ public class BlockUrbanist extends BlockBuildCraft { public TileEntity createNewTileEntity(World var1, int var2) { return new TileUrbanist(); } + + @Override + public boolean renderAsNormalBlock() { + return false; + } + + @Override + public boolean isSideSolid(IBlockAccess world, int x, int y, int z, ForgeDirection side) { + return false; + } + + @Override + public int getLightValue(IBlockAccess world, int x, int y, int z) { + return 1; + } } diff --git a/common/buildcraft/energy/BlockEnergyEmitter.java b/common/buildcraft/energy/BlockEnergyEmitter.java index ff44cdd9..0843efa3 100755 --- a/common/buildcraft/energy/BlockEnergyEmitter.java +++ b/common/buildcraft/energy/BlockEnergyEmitter.java @@ -42,11 +42,6 @@ public class BlockEnergyEmitter extends BlockBuildCraft { return false; } - public boolean isACube() { - return false; - } - - //@Override //public int getRenderType() { // return BuildCraftCore.blockByEntityModel;