Skip to content

Commit 288751d

Browse files
committed
Rename offset arguments on //deform and //generate to offsetPlacement
1 parent 01d24c7 commit 288751d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

worldedit-core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public int generate(Actor actor, LocalSession session, EditSession editSession,
291291
@Switch(name = 'r', desc = "Use the game's coordinate origin")
292292
boolean useRawCoords,
293293
@Switch(name = 'o', desc = "Use the placement's coordinate origin")
294-
boolean offset,
294+
boolean offsetPlacement,
295295
@Switch(name = 'c', desc = "Use the selection's center as origin")
296296
boolean offsetCenter) throws WorldEditException {
297297

@@ -301,7 +301,7 @@ public int generate(Actor actor, LocalSession session, EditSession editSession,
301301
if (useRawCoords) {
302302
zero = Vector3.ZERO;
303303
unit = Vector3.ONE;
304-
} else if (offset) {
304+
} else if (offsetPlacement) {
305305
zero = session.getPlacementPosition(actor).toVector3();
306306
unit = Vector3.ONE;
307307
} else if (offsetCenter) {

worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ public int deform(Actor actor, LocalSession session, EditSession editSession,
480480
@Switch(name = 'r', desc = "Use the game's coordinate origin")
481481
boolean useRawCoords,
482482
@Switch(name = 'o', desc = "Use the placement's coordinate origin")
483-
boolean offset,
483+
boolean offsetPlacement,
484484
@Switch(name = 'c', desc = "Use the selection's center as origin")
485485
boolean offsetCenter) throws WorldEditException {
486486
final Vector3 zero;
@@ -489,7 +489,7 @@ public int deform(Actor actor, LocalSession session, EditSession editSession,
489489
if (useRawCoords) {
490490
zero = Vector3.ZERO;
491491
unit = Vector3.ONE;
492-
} else if (offset) {
492+
} else if (offsetPlacement) {
493493
zero = session.getPlacementPosition(actor).toVector3();
494494
unit = Vector3.ONE;
495495
} else if (offsetCenter) {

0 commit comments

Comments
 (0)