mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-02 10:00:23 +02:00
Save world name when session is saved (temporarily) - fix
This commit is contained in:
parent
b3d9efc502
commit
4805498e41
|
@ -142,7 +142,7 @@ public class DataStoreQueries {
|
||||||
// TODO Remove usage after WorldChange event stores world names in its own transaction
|
// TODO Remove usage after WorldChange event stores world names in its own transaction
|
||||||
private static Executable storeWorldName(UUID serverUUID, String worldName) {
|
private static Executable storeWorldName(UUID serverUUID, String worldName) {
|
||||||
return connection -> {
|
return connection -> {
|
||||||
if (doesWorldNameExist(connection, serverUUID, worldName)) {
|
if (!doesWorldNameExist(connection, serverUUID, worldName)) {
|
||||||
return insertWorldName(serverUUID, worldName).execute(connection);
|
return insertWorldName(serverUUID, worldName).execute(connection);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user