Skip to content

Commit

Permalink
Allow spectating non-living entities
Browse files Browse the repository at this point in the history
This previously prevented an old bug that no longer exists.
  • Loading branch information
PseudoKnight committed May 7, 2024
1 parent e51c79f commit 0288d3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5509,7 +5509,7 @@ public Mixed exec(Target t, Environment environment, Mixed... args) throws Confi
if(args[offset] instanceof CNull) {
p.setSpectatorTarget(null);
} else {
p.setSpectatorTarget(Static.getLivingEntity(args[offset], t));
p.setSpectatorTarget(Static.getEntity(args[offset], t));
}
return CVoid.VOID;
}
Expand Down

0 comments on commit 0288d3f

Please sign in to comment.