Skip to content

Commit

Permalink
Fix Parse Error
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAbsolutionism committed Dec 1, 2024
1 parent 2b9ae9b commit d3ca810
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class ExprEntitySnapshot extends SimplePropertyExpression<Entity, EntityS

@Override
public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelayed, ParseResult parseResult) {
if (Player.class.equals(exprs[0].getReturnType())) {
if (Player.class.isAssignableFrom(exprs[0].getReturnType())) {
Skript.error("You can't get a snapshot of a player.");
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class ExprSpawnEggEntity extends SimplePropertyExpression<Object, Object>

@Override
public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelayed, ParseResult parseResult) {
if (Player.class.equals(exprs[0].getReturnType())) {
if (Player.class.isAssignableFrom(exprs[0].getReturnType())) {
Skript.error("You can't set the spawn egg entity to a player.");
return false;
}
Expand Down

0 comments on commit d3ca810

Please sign in to comment.