Browse Source

Contract handling cleanup.

combat-2
MagicBot 1 year ago
parent
commit
0a2de9e0d5
  1. 5
      src/engine/db/handlers/dbMobHandler.java

5
src/engine/db/handlers/dbMobHandler.java

@ -44,12 +44,7 @@ public class dbMobHandler extends dbHandlerBase {
preparedStatement.setInt(7, 0); preparedStatement.setInt(7, 0);
preparedStatement.setFloat(8, toAdd.spawnRadius); preparedStatement.setFloat(8, toAdd.spawnRadius);
preparedStatement.setInt(9, toAdd.spawnTime); preparedStatement.setInt(9, toAdd.spawnTime);
if (toAdd.getContract() != null)
preparedStatement.setInt(10, toAdd.contractUUID); preparedStatement.setInt(10, toAdd.contractUUID);
else
preparedStatement.setInt(10, 0);
preparedStatement.setInt(11, toAdd.buildingUUID); preparedStatement.setInt(11, toAdd.buildingUUID);
preparedStatement.setInt(12, toAdd.level); preparedStatement.setInt(12, toAdd.level);
preparedStatement.setString(13, toAdd.firstName); preparedStatement.setString(13, toAdd.firstName);

Loading…
Cancel
Save