Skip to content

Commit e7a77bf

Browse files
committed
Release Version 2.0
1 parent 9afeae7 commit e7a77bf

6 files changed

Lines changed: 5 additions & 18 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.dre</groupId>
66
<artifactId>Brewery</artifactId>
7-
<version>2.0-beta1</version>
7+
<version>2.0</version>
88
<name>Brewery</name>
99

1010
<properties>

resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Brewery
2-
version: 1.8.3
2+
version: 2.0
33
main: com.dre.brewery.P
44
softdepend: [LWC, LogBlock, WorldGuard, GriefPrevention, Vault, Citadel]
55
authors: [Milan Albrecht, Frank Baumann, ProgrammerDan, Daniel Saukel]

src/com/dre/brewery/listeners/InventoryListener.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,10 @@ public void onInventoryClickLow(InventoryClickEvent event) {
126126
}
127127
}
128128
}
129-
//long t1 = System.nanoTime();
130-
Brew brew = Brew.get(item);
131-
//long t2 = System.nanoTime();
129+
/*Brew brew = Brew.get(item);
132130
if (brew != null) {
133-
P.p.log(brew.toString());
134-
135-
//P.p.log("Brew.get(): " + (t2 - t1) / 1000000.0 + "ms");
136-
137-
//brew.touch();
138-
}
131+
brew.touch();
132+
}*/
139133
}
140134
}
141135
}

src/com/dre/brewery/listeners/PlayerListener.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ public void onPlayerInteract(PlayerInteractEvent event) {
6565
if (barrel != null) {
6666
event.setCancelled(true);
6767

68-
P.p.debugLog("Barrel has area of: " + barrel.getBody().getBounds().area());
69-
7068
if (!barrel.hasPermsOpen(player, event)) {
7169
return;
7270
}

src/com/dre/brewery/recipe/BCauldronRecipe.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ public float getIngredientMatch(List<Ingredient> items) {
172172
//double mod = 0.1 + (0.9 * Math.exp(-0.03 * difference)); // logarithmic curve from 1 to 0.1
173173
double mod = 1 + (0.9 * -Math.exp(-0.03 * factor)); // logarithmic curve from 0.1 to 1, small for a low factor
174174

175-
P.p.debugLog("Mod for " + recipeIng + ": " + mod);
176-
177175
match *= mod;
178176
continue search;
179177
}

src/com/dre/brewery/utility/LegacyUtil.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,17 +261,14 @@ public static boolean initNbt() {
261261
try {
262262
Class.forName("org.bukkit.persistence.PersistentDataContainer");
263263
NewNbtVer = true;
264-
P.p.log("Using the NEW nbt api");
265264
return true;
266265
} catch (ClassNotFoundException e) {
267266
try {
268267
Class.forName("org.bukkit.inventory.meta.tags.CustomItemTagContainer");
269268
NewNbtVer = false;
270-
P.p.log("Using the OLD nbt api");
271269
return true;
272270
} catch (ClassNotFoundException ex) {
273271
NewNbtVer = false;
274-
P.p.log("No nbt api found, using Lore Save System");
275272
return false;
276273
}
277274
}

0 commit comments

Comments
 (0)