Listener for Barrel breaking -> LWC Support

This commit is contained in:
Sn0wStorm
2014-04-08 16:11:20 +02:00
parent 3155bbab63
commit 1c6fe6cc33
19 changed files with 790 additions and 227 deletions
+2 -7
View File
@@ -12,8 +12,6 @@ import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.inventory.BrewerInventory;
import com.dre.brewery.BIngredients;
public class Brew {
// represents the liquid in the brewed Potions
@@ -222,7 +220,7 @@ public class Brew {
} else {
quality /= 2;
}
return (int) Math.round(quality);
return Math.round(quality);
}
public int getQuality() {
@@ -529,10 +527,7 @@ public class Brew {
// True if the PotionMeta has colored Lore
public static Boolean hasColorLore(PotionMeta meta) {
if (meta.hasLore()) {
return !meta.getLore().get(1).startsWith(P.p.color("&7"));
}
return false;
return meta.hasLore() && !meta.getLore().get(1).startsWith(P.p.color("&7"));
}
// gets the Color that represents a quality in Lore