Moved some Utility to Util Class

This commit is contained in:
Sn0wStorm
2019-08-18 15:42:22 +02:00
parent 9567feed81
commit 930d4a2028
9 changed files with 171 additions and 141 deletions
+2 -2
View File
@@ -526,7 +526,7 @@ public class Barrel implements InventoryHolder {
// Saves all data
public static void save(ConfigurationSection config, ConfigurationSection oldData) {
P.p.createWorldSections(config);
Util.createWorldSections(config);
if (!barrels.isEmpty()) {
int id = 0;
@@ -536,7 +536,7 @@ public class Barrel implements InventoryHolder {
String prefix;
if (worldName.startsWith("DXL_")) {
prefix = P.p.getDxlName(worldName) + "." + id;
prefix = Util.getDxlName(worldName) + "." + id;
} else {
prefix = barrel.spigot.getWorld().getUID().toString() + "." + id;
}