Skip to content

Commit

Permalink
Fix ServerPlayer#teleport overwrite signature
Browse files Browse the repository at this point in the history
  • Loading branch information
aromaa committed Nov 10, 2024
1 parent d94ab6b commit 7b1d7f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 7b1d7f4

Please sign in to comment.