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

@@ -1,9 +0,0 @@
# Tell server which IDFactory Class to use
# Options are:
# BITSET (One non compaction method - default),
# STACK (Another non compaction method)
IDFactory = BITSET
# Check for bad ids in the database on server boot up
# Much faster load time without it, but may cause problems
BadIdChecking = True

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();