Fixed spells that affect blocks not working

This commit is contained in:
Sollace 2021-12-29 17:18:04 +02:00
parent e7e7244758
commit 41e178b8d6

View file

@ -62,7 +62,7 @@ public interface Caster<E extends LivingEntity> extends Owned<E>, Levelled, Affi
default boolean canModifyAt(BlockPos pos) {
if (getMaster() instanceof PlayerEntity) {
return !getWorld().canPlayerModifyAt((PlayerEntity)getMaster(), pos);
return getWorld().canPlayerModifyAt((PlayerEntity)getMaster(), pos);
}
return getWorld().getGameRules().getBoolean(GameRules.DO_MOB_GRIEFING);
}