Prevent receptacles dropping on neighbour change when attached to an imbuement altar, fixes #520
This commit is contained in:
@@ -132,6 +132,13 @@ public class BlockReceptacle extends BlockTorch implements ITileEntityProvider {
|
||||
return super.checkForDrop(world, pos, state);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean onNeighborChangeInternal(World world, BlockPos pos, IBlockState state){
|
||||
// This is so stupid, BlockTorch DUPLICATES the code that checks for valid placement in the super method instead
|
||||
// of checking the existing methods...
|
||||
return !this.checkForDrop(world, pos, state); // Literally all we need. None of the rubbish in super.
|
||||
}
|
||||
|
||||
@Override
|
||||
public IBlockState getStateForPlacement(World world, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user