mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
Added a check for when the old and new data folders are the same.
This commit is contained in:
parent
4378464989
commit
e6a51fb149
1 changed files with 3 additions and 1 deletions
|
@ -72,7 +72,9 @@ public final class JavaPluginLoader implements PluginLoader {
|
|||
File oldDataFolder = getDataFolder(file);
|
||||
|
||||
// Found old data folder
|
||||
if (dataFolder.isDirectory() && oldDataFolder.isDirectory()) {
|
||||
if (dataFolder.equals(oldDataFolder)) {
|
||||
// They are equal -- nothing needs to be done!
|
||||
} else if (dataFolder.isDirectory() && oldDataFolder.isDirectory()) {
|
||||
server.getLogger().log( Level.INFO, String.format(
|
||||
"While loading %s (%s) found old-data folder: %s next to the new one: %s",
|
||||
description.getName(),
|
||||
|
|
Loading…
Add table
Reference in a new issue