Skip to content

Commit

Permalink
fix(paper): make PlayerSource extend EntitySource
Browse files Browse the repository at this point in the history
  • Loading branch information
broccolai committed Aug 3, 2024
1 parent b1ee8d1 commit e3ad2d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@
import org.checkerframework.checker.nullness.qual.NonNull;

@SuppressWarnings("UnstableApiUsage")
public final class EntitySource extends GenericSource {
public class EntitySource extends GenericSource {

EntitySource(final CommandSourceStack commandSourceStack) {
super(commandSourceStack);
}

/**
* @see Source#source()
*/
@Override
public @NonNull Entity source() {
return (Entity) super.source();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.checkerframework.checker.nullness.qual.NonNull;

@SuppressWarnings("UnstableApiUsage")
public final class PlayerSource extends GenericSource {
public final class PlayerSource extends EntitySource {

PlayerSource(final CommandSourceStack commandSourceStack) {
super(commandSourceStack);
Expand Down

0 comments on commit e3ad2d3

Please sign in to comment.