mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-04 05:54:43 +01:00
Implemented world.getWorldFolder
This commit is contained in:
parent
20a0b0a9be
commit
ef75a286ac
2 changed files with 6 additions and 1 deletions
|
@ -53,7 +53,7 @@ public class PlayerNBTManager implements PlayerFileData, IDataManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected File a() {
|
public File a() { // CraftBukkit - public to private
|
||||||
return this.b;
|
return this.b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package org.bukkit.craftbukkit;
|
package org.bukkit.craftbukkit;
|
||||||
|
|
||||||
import com.google.common.collect.MapMaker;
|
import com.google.common.collect.MapMaker;
|
||||||
|
import java.io.File;
|
||||||
import org.bukkit.craftbukkit.entity.*;
|
import org.bukkit.craftbukkit.entity.*;
|
||||||
import org.bukkit.entity.*;
|
import org.bukkit.entity.*;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
|
@ -893,4 +894,8 @@ public class CraftWorld implements World {
|
||||||
|
|
||||||
return this.getUID() == other.getUID();
|
return this.getUID() == other.getUID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public File getWorldFolder() {
|
||||||
|
return ((PlayerNBTManager)world.q()).a();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue