diff --git a/src/mixins/java/org/spongepowered/common/mixin/core/server/level/ServerPlayerMixin.java b/src/mixins/java/org/spongepowered/common/mixin/core/server/level/ServerPlayerMixin.java index 813326a28e3..6d21338b8a8 100644 --- a/src/mixins/java/org/spongepowered/common/mixin/core/server/level/ServerPlayerMixin.java +++ b/src/mixins/java/org/spongepowered/common/mixin/core/server/level/ServerPlayerMixin.java @@ -441,7 +441,7 @@ public boolean teleportTo(final ServerLevel world, * @return The {@link Entity} that is either this one, or replaces this one */ @Override - public @Nullable Entity bridge$changeDimension(final TeleportTransition originalTransition) { + public net.minecraft.server.level.@Nullable ServerPlayer bridge$changeDimension(final TeleportTransition originalTransition) { if (this.shadow$isRemoved()) { return null; } @@ -940,7 +940,7 @@ private boolean isPvpAllowed() { * @reason We route all teleportation through sponge's bridge for handling events */ @Overwrite - public @Nullable Entity teleport(final TeleportTransition transition) { + public net.minecraft.server.level.@Nullable ServerPlayer teleport(final TeleportTransition transition) { return this.bridge$changeDimension(transition); }