Skip to content

Commit 8771dbd

Browse files
committedDec 9, 2024·
Fix missing error logging
1 parent fd42b12 commit 8771dbd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/main/java/xyz/nucleoid/plasmid/api/game/player/GamePlayerJoiner.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
import net.minecraft.server.network.ServerPlayerEntity;
55
import net.minecraft.text.Text;
66
import xyz.nucleoid.plasmid.api.event.GameEvents;
7-
import xyz.nucleoid.plasmid.api.game.GameOpenException;
8-
import xyz.nucleoid.plasmid.api.game.GameResult;
9-
import xyz.nucleoid.plasmid.api.game.GameSpace;
10-
import xyz.nucleoid.plasmid.api.game.GameTexts;
7+
import xyz.nucleoid.plasmid.api.game.*;
8+
import xyz.nucleoid.plasmid.impl.Plasmid;
119

1210
import java.util.Collection;
1311
import java.util.Set;
@@ -40,6 +38,7 @@ private static GameResult tryJoinAll(Collection<ServerPlayerEntity> players, Gam
4038
}
4139

4240
public static GameResult handleJoinException(Throwable throwable) {
41+
Plasmid.LOGGER.error("Failed to add player to game space!", throwable);
4342
return GameResult.error(getFeedbackForException(throwable));
4443
}
4544

‎src/main/java/xyz/nucleoid/plasmid/impl/game/manager/ManagedGameSpacePlayers.java

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ private GameResult accept(Collection<ServerPlayerEntity> players, JoinIntent int
9090

9191
return GameResult.ok();
9292
} catch (Throwable throwable) {
93+
this.space.getLifecycle().onError(this.space, throwable, "handling LocalJoinAcceptor.Teleport");
9394
return GameResult.error(GameTexts.Join.unexpectedError());
9495
}
9596
}

0 commit comments

Comments
 (0)
Please sign in to comment.