Require the player to be sneaking to dispel a block with conjure block

This commit is contained in:
Electroblob77
2019-09-03 17:19:09 +01:00
parent fbecce0543
commit 5e321cc4cf
@@ -33,7 +33,7 @@ public class ConjureBlock extends SpellRay {
@Override
protected boolean onBlockHit(World world, BlockPos pos, EnumFacing side, Vec3d hit, EntityLivingBase caster, Vec3d origin, int ticksInUse, SpellModifiers modifiers){
if(world.getBlockState(pos).getBlock() == WizardryBlocks.spectral_block){
if(caster.isSneaking() && world.getBlockState(pos).getBlock() == WizardryBlocks.spectral_block){
if(!world.isRemote){
// Dispelling of blocks