Skip to content

Commit

Permalink
Delay passing out to update inventory properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Sn0wStorm committed Oct 11, 2019
1 parent 2a6b1e2 commit fc66ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/dre/brewery/BPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public void drinkCap(Player player) {
quality = getQuality() * 100;
drunkeness = 100;
if (overdrinkKick && !player.hasPermission("brewery.bypass.overdrink")) {
passOut(player);
P.p.getServer().getScheduler().scheduleSyncDelayedTask(P.p, () -> passOut(player), 1);
} else {
addPuke(player, 60 + (int) (Math.random() * 60.0));
P.p.msg(player, P.p.languageReader.get("Player_CantDrink"));
Expand Down

0 comments on commit fc66ed6

Please sign in to comment.