Fixed extra animation when trying to cook more items than possible

This commit is contained in:
Sam Marder
2026-06-08 14:19:19 +00:00
committed by Ryan
parent dfcff908fe
commit dc12d2d6ab
2 changed files with 2 additions and 2 deletions
@@ -43,7 +43,6 @@ public class IntentionalBurnPulse extends StandardCookingPulse {
@Override
public boolean cook(Player player, Scenery object, boolean burned, int initial, int product) {
super.animate();
Item initialItem = new Item(initial);
Item productItem = new Item(product);
@@ -51,6 +50,7 @@ public class IntentionalBurnPulse extends StandardCookingPulse {
player.getInventory().add(productItem);
player.getPacketDispatch().sendMessage(getMessage(initialItem, productItem, burned));
playAudio(player, Sounds.FRY_2577);
super.animate();
return true;
}
return false;
@@ -149,7 +149,6 @@ public class StandardCookingPulse extends Pulse {
public boolean cook(final Player player, final Scenery object, final boolean burned, final int initial, final int product) {
Item initialItem = new Item(initial);
Item productItem = new Item(product);
animate();
//handle special cooking results (spits, cake, etc) that don't justify separate plugin
switch (initial) {
@@ -188,6 +187,7 @@ public class StandardCookingPulse extends Pulse {
}
player.getPacketDispatch().sendMessage(getMessage(initialItem, productItem, burned));
playAudio(player, Sounds.FRY_2577);
animate();
return true;
}
return false;