Fix #918 New chests are not transparent to light

This commit is contained in:
mezz committed 2015-10-25 13:26:13 -07:00
1 parent 85c05d8985
commit b7aaebd508
2 files changed
+2 -9

No files matched your search

@@ -59,6 +59,8 @@ public class BlockBase extends BlockForestry {
super(material);
this.hasTESR = hasTESR;
this.opaque = this.isOpaqueCube();
this.lightOpacity = this.isOpaqueCube() ? 255 : 0;
}
public MachineDefinition addDefinition(MachineDefinition definition) {
@@ -164,10 +166,6 @@ public class BlockBase extends BlockForestry {
@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7, float par8, float par9) {
if (getDefinition(world, x, y, z).onBlockActivated(world, x, y, z, player, side)) {
return true;
}
if (player.isSneaking()) {
return false;
}
@@ -16,7 +16,6 @@ import java.util.Locale;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;
@@ -154,10 +153,6 @@ public class MachineDefinition {
return true;
}
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side) {
return false;
}
public boolean rotateBlock(World world, int x, int y, int z, ForgeDirection axis) {
return false;
}