mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 19:29:17 +00:00
Fix #918 New chests are not transparent to light
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user