Prevent multiple FeedableBeasts spawns from spamming feed.

This commit is contained in:
MobiusDevelopment
2022-01-27 06:09:32 +00:00
parent ddeb0b1f48
commit 310ea57339
5 changed files with 58 additions and 0 deletions

View File

@@ -342,6 +342,17 @@ public class FeedableBeasts extends Quest
private void spawnNext(Npc npc, int growthLevel, Player player, int food)
{
if (npc.isScriptValue(1))
{
return;
}
npc.setScriptValue(1);
if (!npc.isSpawned())
{
return;
}
final int npcId = npc.getNpcId();
int nextNpcId = 0;