This commit is contained in:
Florian Nücke 2015-03-24 01:40:58 +01:00
parent 3625626fe5
commit a906759283
3 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,6 @@
package li.cil.oc.client.renderer.block
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler
import cpw.mods.fml.common.Loader
import li.cil.oc.Settings
import li.cil.oc.client.renderer.tileentity.RobotRenderer
import li.cil.oc.common.block._
@ -141,8 +140,6 @@ object BlockRenderer extends ISimpleBlockRenderingHandler {
}
}
val isOneSevenTwo = Loader.instance.getMinecraftModContainer.getVersion == "1.7.2"
// I can't be bothered to adjust the screen rendering logic... so special case ahoy.
def patchedRenderer(renderer: RenderBlocks, block: Block) = if (!block.isInstanceOf[Screen]) {
PatchedRenderBlocks.blockAccess = renderer.blockAccess

View File

@ -22,6 +22,7 @@ import scala.reflect.ClassTag
class Print(protected implicit val tileTag: ClassTag[tileentity.Print]) extends RedstoneAware with traits.SpecialBlock with traits.CustomDrops[tileentity.Print] {
setLightOpacity(0)
setHardness(1)
setCreativeTab(null)
NEI.hide(this)
setBlockTextureName(Settings.resourceDomain + "GenericTop")

View File

@ -27,6 +27,7 @@ import net.minecraftforge.common.util.ForgeDirection
class SimpleBlock(material: Material = Material.iron) extends Block(material) {
setHardness(2f)
setResistance(5)
setCreativeTab(CreativeTab)
var showInItemList = true