Fixed Bug: #1040 - Cables can be broken by hand in adventure mode
This commit is contained in:
@@ -42,6 +42,7 @@ import appeng.core.features.AEFeature;
|
||||
import appeng.core.features.AEFeatureHandler;
|
||||
import appeng.core.features.IAEFeature;
|
||||
import appeng.core.features.ItemStackSrc;
|
||||
import appeng.helpers.AEGlassMaterial;
|
||||
import appeng.helpers.ICustomCollision;
|
||||
import appeng.tile.AEBaseTile;
|
||||
import appeng.tile.networking.TileCableBus;
|
||||
@@ -203,7 +204,9 @@ public class AEBaseBlock extends BlockContainer implements IAEFeature
|
||||
protected AEBaseBlock(Class<?> c, Material mat, String subname) {
|
||||
super( mat );
|
||||
|
||||
if ( mat == Material.glass )
|
||||
if ( mat == AEGlassMaterial.instance )
|
||||
setStepSound( Block.soundTypeGlass );
|
||||
else if ( mat == Material.glass )
|
||||
setStepSound( Block.soundTypeGlass );
|
||||
else if ( mat == Material.rock )
|
||||
setStepSound( Block.soundTypeStone );
|
||||
@@ -532,7 +535,7 @@ public class AEBaseBlock extends BlockContainer implements IAEFeature
|
||||
if ( Platform.isClient() )
|
||||
{
|
||||
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
|
||||
LookDirection ld = Platform.getPlayerRay( player, Platform.getEyeOffset(player ) );
|
||||
LookDirection ld = Platform.getPlayerRay( player, Platform.getEyeOffset( player ) );
|
||||
|
||||
Iterable<AxisAlignedBB> bbs = collisionHandler.getSelectedBoundingBoxsFromPool( w, x, y, z, Minecraft.getMinecraft().thePlayer, true );
|
||||
AxisAlignedBB br = null;
|
||||
|
||||
Reference in New Issue
Block a user