Browse Source

Contract handling cleanup.

mobile-class-refactor
MagicBot 1 year ago
parent
commit
0a2de9e0d5
  1. 7
      src/engine/db/handlers/dbMobHandler.java

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

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

Loading…
Cancel
Save