Browse Source

Cleanup of PERSIST db call.

master
MagicBot 1 year ago
parent
commit
50f81396c7
  1. 5
      src/engine/db/handlers/dbNPCHandler.java

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

@ -57,10 +57,7 @@ public class dbNPCHandler extends dbHandlerBase {
preparedStatement.setFloat(9, toAdd.buyPercent); preparedStatement.setFloat(9, toAdd.buyPercent);
preparedStatement.setFloat(10, toAdd.sellPercent); preparedStatement.setFloat(10, toAdd.sellPercent);
if (toAdd.buildingUUID > 0) preparedStatement.setInt(11, Math.max(toAdd.buildingUUID, 0));
preparedStatement.setInt(11, toAdd.buildingUUID);
else
preparedStatement.setInt(11, 0);
ResultSet rs = preparedStatement.executeQuery(); ResultSet rs = preparedStatement.executeQuery();

Loading…
Cancel
Save