Fixed dropping Potions with colored Lore

This commit is contained in:
Sn0wStorm 2013-09-01 21:45:02 +02:00
parent c7c72e1699
commit 16bb62c854

View File

@ -7,6 +7,7 @@ import org.bukkit.entity.Player;
import org.bukkit.block.Block;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.PotionMeta;
import org.bukkit.configuration.ConfigurationSection;
public class Barrel {
@ -133,6 +134,11 @@ public class Barrel {
if (brew != null) {
// Brew before throwing
brew.age(item, time, getWood());
PotionMeta meta = (PotionMeta) item.getItemMeta();
if (Brew.hasColorLore(meta)) {
brew.convertLore(meta, false);
item.setItemMeta(meta);
}
}
// "broken" is the block that destroyed, throw them there!
if (broken != null) {