Single class IdFactory with synchronized static methods.
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# ID Factory Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Warning:
|
||||
# Please take extreme caution when changing anything. Also please understand what you are changing before you do so on a live server.
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Standard Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Tell server which IDFactory Class to use:
|
||||
# BITSET = One non compaction method
|
||||
# STACK = Another non compaction method
|
||||
# Default: BITSET
|
||||
IDFactory = BITSET
|
||||
|
||||
# Check for bad ids in the database on server boot up.
|
||||
# Much faster load time without it, but may cause problems.
|
||||
# Default: True
|
||||
BadIdChecking = True
|
||||
@@ -225,7 +225,7 @@ public class Loto implements IBypassHandler
|
||||
sm.addItemName(4442);
|
||||
player.sendPacket(sm);
|
||||
|
||||
final ItemInstance item = new ItemInstance(IdFactory.getInstance().getNextId(), 4442);
|
||||
final ItemInstance item = new ItemInstance(IdFactory.getNextId(), 4442);
|
||||
item.setCount(1);
|
||||
item.setCustomType1(lotonumber);
|
||||
item.setEnchantLevel(enchant);
|
||||
|
||||
Reference in New Issue
Block a user