Major schedules & DB refactor
Refactored many calls for TimerManager's schedules throughout the source. Switched all tables using MyISAM to InnoDB: on a multi-threaded environment such as this, table-locking is an instant no-no, and other gains MyISAM would have over InnoDB are minimal. Altered getConnection() to properly throw an exception (good practice!) in case of no available connection instead of a mere null.
This commit is contained in:
@@ -313,6 +313,13 @@ public class MaplePacketCreator {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static byte[] setExtraPendantSlot(boolean toggleExtraSlot) {
|
||||
final MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
|
||||
mplew.writeShort(SendOpcode.SET_EXTRA_PENDANT_SLOT.getValue());
|
||||
mplew.writeBool(toggleExtraSlot);
|
||||
return mplew.getPacket();
|
||||
}
|
||||
|
||||
private static void addCharEntry(final MaplePacketLittleEndianWriter mplew, MapleCharacter chr, boolean viewall) {
|
||||
addCharStats(mplew, chr);
|
||||
|
||||
Reference in New Issue
Block a user