Sync with L2jServer HighFive Jul 25th 2015.
This commit is contained in:
@ -30,7 +30,7 @@ import org.w3c.dom.Document;
|
||||
import org.w3c.dom.NamedNodeMap;
|
||||
import org.w3c.dom.Node;
|
||||
|
||||
import com.l2jserver.L2DatabaseFactory;
|
||||
import com.l2jserver.commons.database.pool.impl.ConnectionFactory;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.entity.Instance;
|
||||
import com.l2jserver.gameserver.model.instancezone.InstanceWorld;
|
||||
@ -122,7 +122,7 @@ public final class InstanceManager implements IXmlReader
|
||||
restoreInstanceTimes(playerObjId);
|
||||
}
|
||||
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
PreparedStatement ps = con.prepareStatement(ADD_INSTANCE_TIME))
|
||||
{
|
||||
ps.setInt(1, playerObjId);
|
||||
@ -144,7 +144,7 @@ public final class InstanceManager implements IXmlReader
|
||||
*/
|
||||
public void deleteInstanceTime(int playerObjId, int id)
|
||||
{
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
PreparedStatement ps = con.prepareStatement(DELETE_INSTANCE_TIME))
|
||||
{
|
||||
ps.setInt(1, playerObjId);
|
||||
@ -168,7 +168,7 @@ public final class InstanceManager implements IXmlReader
|
||||
return; // already restored
|
||||
}
|
||||
_playerInstanceTimes.put(playerObjId, new ConcurrentHashMap<>());
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
try (Connection con = ConnectionFactory.getInstance().getConnection();
|
||||
PreparedStatement ps = con.prepareStatement(RESTORE_INSTANCE_TIMES))
|
||||
{
|
||||
ps.setInt(1, playerObjId);
|
||||
|
Reference in New Issue
Block a user