Release Version 2.0

This commit is contained in:
Sn0wStorm 2019-12-13 13:23:40 +01:00
parent 9afeae7774
commit e7a77bf2a1
6 changed files with 5 additions and 18 deletions

View File

@ -4,7 +4,7 @@
<groupId>com.dre</groupId>
<artifactId>Brewery</artifactId>
<version>2.0-beta1</version>
<version>2.0</version>
<name>Brewery</name>
<properties>

View File

@ -1,5 +1,5 @@
name: Brewery
version: 1.8.3
version: 2.0
main: com.dre.brewery.P
softdepend: [LWC, LogBlock, WorldGuard, GriefPrevention, Vault, Citadel]
authors: [Milan Albrecht, Frank Baumann, ProgrammerDan, Daniel Saukel]

View File

@ -126,16 +126,10 @@ public class InventoryListener implements Listener {
}
}
}
//long t1 = System.nanoTime();
Brew brew = Brew.get(item);
//long t2 = System.nanoTime();
/*Brew brew = Brew.get(item);
if (brew != null) {
P.p.log(brew.toString());
//P.p.log("Brew.get(): " + (t2 - t1) / 1000000.0 + "ms");
//brew.touch();
}
brew.touch();
}*/
}
}
}

View File

@ -65,8 +65,6 @@ public class PlayerListener implements Listener {
if (barrel != null) {
event.setCancelled(true);
P.p.debugLog("Barrel has area of: " + barrel.getBody().getBounds().area());
if (!barrel.hasPermsOpen(player, event)) {
return;
}

View File

@ -172,8 +172,6 @@ public class BCauldronRecipe {
//double mod = 0.1 + (0.9 * Math.exp(-0.03 * difference)); // logarithmic curve from 1 to 0.1
double mod = 1 + (0.9 * -Math.exp(-0.03 * factor)); // logarithmic curve from 0.1 to 1, small for a low factor
P.p.debugLog("Mod for " + recipeIng + ": " + mod);
match *= mod;
continue search;
}

View File

@ -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;
}
}