Fixed problem with createQuestVarInDb update.
This commit is contained in:
parent
ff0a8bca6d
commit
dadacb19ad
@ -939,7 +939,7 @@ public class Quest extends ManagedScript
|
||||
public static void createQuestVarInDb(QuestState qs, String var, String value)
|
||||
{
|
||||
try (Connection con = L2DatabaseFactory.getInstance().getConnection();
|
||||
PreparedStatement statement = con.prepareStatement("INSERT INTO character_quests (char_id,name,var,value) VALUES (?,?,?,?)"))
|
||||
PreparedStatement statement = con.prepareStatement("REPLACE INTO character_quests (char_id,name,var,value) VALUES (?,?,?,?)"))
|
||||
{
|
||||
statement.setInt(1, qs.getPlayer().getObjectId());
|
||||
statement.setString(2, qs.getQuestName());
|
||||
|
Loading…
Reference in New Issue
Block a user