forked from MagicBane/Server
Cleanup of PERSIST db call.
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user