Skip to content

Commit 56bafa1

Browse files
committed
Rename offset arguments on //deform and //generate to offsetPlacement
1 parent 1ddf4e4 commit 56bafa1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public int generate(Actor actor, LocalSession session, EditSession editSession,
309309
@Switch(name = 'r', desc = "Use the game's coordinate origin")
310310
boolean useRawCoords,
311311
@Switch(name = 'o', desc = "Use the placement's coordinate origin")
312-
boolean offset,
312+
boolean offsetPlacement,
313313
@Switch(name = 'c', desc = "Use the selection's center as origin")
314314
boolean offsetCenter) throws WorldEditException {
315315

@@ -319,7 +319,7 @@ public int generate(Actor actor, LocalSession session, EditSession editSession,
319319
if (useRawCoords) {
320320
zero = Vector3.ZERO;
321321
unit = Vector3.ONE;
322-
} else if (offset) {
322+
} else if (offsetPlacement) {
323323
zero = session.getPlacementPosition(actor).toVector3();
324324
unit = Vector3.ONE;
325325
} else if (offsetCenter) {

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

+2-2
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)