Cheap workaround for glitching into some blocks with a smaller hitbox causing graphical glitches and damaging the player

This commit is contained in:
Ellpeck 2016-01-21 19:59:26 +01:00
parent c4f8e67d64
commit c7ccab75b8
6 changed files with 30 additions and 0 deletions

View file

@ -54,6 +54,11 @@ public class BlockCoffeeMachine extends BlockContainerBase{
return false;
}
@Override
public boolean isFullCube(){
return false;
}
@Override
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumFacing f6, float f7, float f8, float f9){
if(!world.isRemote){

View file

@ -39,6 +39,11 @@ public class BlockFishingNet extends BlockContainerBase{
return false;
}
@Override
public boolean isFullCube(){
return false;
}
@Override
public EnumRarity getRarity(ItemStack stack){
return EnumRarity.RARE;

View file

@ -39,6 +39,11 @@ public class BlockFurnaceSolar extends BlockContainerBase{
return false;
}
@Override
public boolean isFullCube(){
return false;
}
@Override
public EnumRarity getRarity(ItemStack stack){
return EnumRarity.UNCOMMON;

View file

@ -57,6 +57,11 @@ public class BlockLaserRelay extends BlockContainerBase{
return false;
}
@Override
public boolean isFullCube(){
return false;
}
@Override
public IBlockState onBlockPlaced(World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ, int meta, EntityLivingBase base){
return this.getStateFromMeta(side.ordinal());

View file

@ -36,6 +36,11 @@ public class BlockPhantomBooster extends BlockContainerBase{
return false;
}
@Override
public boolean isFullCube(){
return false;
}
@Override
public EnumRarity getRarity(ItemStack stack){
return EnumRarity.EPIC;

View file

@ -57,6 +57,11 @@ public class BlockSmileyCloud extends BlockContainerBase{
return false;
}
@Override
public boolean isFullCube(){
return false;
}
@Override
@SideOnly(Side.CLIENT)
public void randomDisplayTick(World world, BlockPos pos, IBlockState state, Random rand){