Single class IdFactory with synchronized static methods.
This commit is contained in:
@@ -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
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user