mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-31 04:21:25 +01:00
Fixed WORLDGUARD-2255, where region.getId() was lowercase'd each pass of a for loop in MySQLDatabase.updatePoly2dPoints().
This commit is contained in:
parent
c32d2dd6f8
commit
34fa5eceb8
@ -943,8 +943,9 @@ private void updatePoly2dPoints(ProtectedPolygonalRegion region) throws SQLExcep
|
|||||||
") VALUES (null, ?, " + this.worldDbId + ", ?, ?)"
|
") VALUES (null, ?, " + this.worldDbId + ", ?, ?)"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
String lowerId = region.getId();
|
||||||
for (BlockVector2D point : region.getPoints()) {
|
for (BlockVector2D point : region.getPoints()) {
|
||||||
insertPoly2dPointStatement.setString(1, region.getId().toLowerCase());
|
insertPoly2dPointStatement.setString(1, lowerId);
|
||||||
insertPoly2dPointStatement.setInt(2, point.getBlockZ());
|
insertPoly2dPointStatement.setInt(2, point.getBlockZ());
|
||||||
insertPoly2dPointStatement.setInt(3, point.getBlockX());
|
insertPoly2dPointStatement.setInt(3, point.getBlockX());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user