mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2024-11-25 12:05:16 +01:00
Release Version 2.0
This commit is contained in:
parent
9afeae7774
commit
e7a77bf2a1
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
||||
|
||||
<groupId>com.dre</groupId>
|
||||
<artifactId>Brewery</artifactId>
|
||||
<version>2.0-beta1</version>
|
||||
<version>2.0</version>
|
||||
<name>Brewery</name>
|
||||
|
||||
<properties>
|
||||
|
@ -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]
|
||||
|
@ -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();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user