Fixed WORLDGUARD-2255, where region.getId() was lowercase'd each pass of a for loop in MySQLDatabase.updatePoly2dPoints().

This commit is contained in:
sk89q 2012-11-02 14:13:02 -07:00
parent c32d2dd6f8
commit 34fa5eceb8

View File

@ -943,8 +943,9 @@ private void updatePoly2dPoints(ProtectedPolygonalRegion region) throws SQLExcep
") VALUES (null, ?, " + this.worldDbId + ", ?, ?)"
);
String lowerId = region.getId();
for (BlockVector2D point : region.getPoints()) {
insertPoly2dPointStatement.setString(1, region.getId().toLowerCase());
insertPoly2dPointStatement.setString(1, lowerId);
insertPoly2dPointStatement.setInt(2, point.getBlockZ());
insertPoly2dPointStatement.setInt(3, point.getBlockX());