mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 08:59:01 +00:00
Release Version 2.0
This commit is contained in:
@@ -261,17 +261,14 @@ public class LegacyUtil {
|
||||
try {
|
||||
Class.forName("org.bukkit.persistence.PersistentDataContainer");
|
||||
NewNbtVer = true;
|
||||
P.p.log("Using the NEW nbt api");
|
||||
return true;
|
||||
} catch (ClassNotFoundException e) {
|
||||
try {
|
||||
Class.forName("org.bukkit.inventory.meta.tags.CustomItemTagContainer");
|
||||
NewNbtVer = false;
|
||||
P.p.log("Using the OLD nbt api");
|
||||
return true;
|
||||
} catch (ClassNotFoundException ex) {
|
||||
NewNbtVer = false;
|
||||
P.p.log("No nbt api found, using Lore Save System");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user