Save world name when session is saved (temporarily) - fix

This commit is contained in:
Rsl1122 2019-01-27 18:29:22 +02:00
parent b3d9efc502
commit 4805498e41

View File

@ -142,7 +142,7 @@ public class DataStoreQueries {
// TODO Remove usage after WorldChange event stores world names in its own transaction
private static Executable storeWorldName(UUID serverUUID, String worldName) {
return connection -> {
if (doesWorldNameExist(connection, serverUUID, worldName)) {
if (!doesWorldNameExist(connection, serverUUID, worldName)) {
return insertWorldName(serverUUID, worldName).execute(connection);
}
return false;