Single class IdFactory with synchronized static methods.

This commit is contained in:
MobiusDevelopment
2020-02-08 14:34:00 +00:00
parent 29771aa0d8
commit a534cc943c
497 changed files with 4701 additions and 10894 deletions

View File

@@ -400,7 +400,7 @@ public class FeedableBeasts extends Quest
}
final NpcTemplate template = NpcTable.getInstance().getTemplate(nextNpcId);
final TamedBeastInstance nextNpc = new TamedBeastInstance(IdFactory.getInstance().getNextId(), template, player, food, npc.getX(), npc.getY(), npc.getZ());
final TamedBeastInstance nextNpc = new TamedBeastInstance(IdFactory.getNextId(), template, player, food, npc.getX(), npc.getY(), npc.getZ());
nextNpc.setRunning();