Prevent receptacles dropping on neighbour change when attached to an imbuement altar, fixes #520

This commit is contained in:
Electroblob77
2020-11-03 01:08:11 +00:00
parent d952e9b255
commit 3d3806c20b
@@ -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){