Attempt to fix homunculus reset task warning.
Contributed by CostlyKiller.
This commit is contained in:
		| @@ -296,9 +296,13 @@ public class DailyTaskManager extends AbstractEventManager<AbstractEvent<?>> | ||||
| 		// Update data for offline players. | ||||
| 		try (Connection con = DatabaseFactory.getConnection()) | ||||
| 		{ | ||||
| 			try (PreparedStatement ps = con.prepareStatement("UPDATE character_variables SET val = ? WHERE var IN (" + PlayerVariables.HOMUNCULUS_USED_RESET_VP + ", " + PlayerVariables.HOMUNCULUS_USED_VP_CONVERT + ", " + PlayerVariables.HOMUNCULUS_USED_RESET_KILLS + ", " + PlayerVariables.HOMUNCULUS_USED_KILL_CONVERT + ")")) | ||||
| 			try (PreparedStatement ps = con.prepareStatement("UPDATE character_variables SET val = ? WHERE var IN (?, ?, ?, ?)")) | ||||
| 			{ | ||||
| 				ps.setInt(1, 0); | ||||
| 				ps.setString(1, PlayerVariables.HOMUNCULUS_USED_RESET_VP); | ||||
| 				ps.setString(2, PlayerVariables.HOMUNCULUS_USED_VP_CONVERT); | ||||
| 				ps.setString(3, PlayerVariables.HOMUNCULUS_USED_RESET_KILLS); | ||||
| 				ps.setString(4, PlayerVariables.HOMUNCULUS_USED_KILL_CONVERT); | ||||
| 				ps.execute(); | ||||
| 			} | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment