Send Hangover Bar as Title instead

This commit is contained in:
Sn0wStorm
2020-11-11 17:34:15 +01:00
parent 823f5a4204
commit fae2d15804
2 changed files with 19 additions and 23 deletions
+4 -5
View File
@@ -7,11 +7,7 @@ import com.dre.brewery.recipe.RecipeItem;
import com.dre.brewery.utility.BUtil;
import com.dre.brewery.utility.LegacyUtil;
import com.dre.brewery.utility.Tuple;
import org.bukkit.Color;
import org.bukkit.Effect;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Particle;
import org.bukkit.*;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.data.BlockData;
@@ -212,6 +208,9 @@ public class BCauldron {
changed = true;
}
}
if (P.use1_9) {
block.getWorld().playSound(block.getLocation(), Sound.ITEM_BOTTLE_FILL, 1f, 1f);
}
// Bukkit Bug, inventory not updating while in event so this
// will delay the give
// but could also just use deprecated updateInventory()