mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 11:36:43 +01:00
Fixed spells that affect blocks not working
This commit is contained in:
parent
e7e7244758
commit
41e178b8d6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue