minor refactoring

This commit is contained in:
nossr50
2024-06-19 12:15:00 -07:00
parent eeecf18caf
commit 4fce053804
2 changed files with 10 additions and 4 deletions

View File

@@ -156,7 +156,7 @@ public class AlchemyBrewTask extends CancellableRunnable {
mcMMO.p.getServer().getPluginManager().callEvent(event);
if (!event.isCancelled()) {
AlchemyPotionBrewer.finishBrewing(brewingStand, mmoPlayer.getPlayer(), false);
AlchemyPotionBrewer.finishBrewing(brewingStand, mmoPlayer, false);
}
Alchemy.brewingStandMap.remove(brewingStand.getLocation());
@@ -165,7 +165,7 @@ public class AlchemyBrewTask extends CancellableRunnable {
public void finishImmediately() {
this.cancel();
AlchemyPotionBrewer.finishBrewing(brewingStand, mmoPlayer.getPlayer(), true);
AlchemyPotionBrewer.finishBrewing(brewingStand, mmoPlayer, true);
Alchemy.brewingStandMap.remove(brewingStand.getLocation());
}