Skip to content

Commit bdb3817

Browse files
committed
Rename offset arguments on //deform, //generate and //generatebiome to offsetPlacement
1 parent 1131ea9 commit bdb3817

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public int generate(Actor actor, LocalSession session, EditSession editSession,
370370
@Switch(name = 'r', desc = "Use the game's coordinate origin")
371371
boolean useRawCoords,
372372
@Switch(name = 'o', desc = "Use the placement's coordinate origin")
373-
boolean offset,
373+
boolean offsetPlacement,
374374
@Switch(name = 'c', desc = "Use the selection's center as origin")
375375
boolean offsetCenter) throws WorldEditException {
376376

@@ -380,7 +380,7 @@ public int generate(Actor actor, LocalSession session, EditSession editSession,
380380
if (useRawCoords) {
381381
zero = Vector3.ZERO;
382382
unit = Vector3.ONE;
383-
} else if (offset) {
383+
} else if (offsetPlacement) {
384384
zero = session.getPlacementPosition(actor).toVector3();
385385
unit = Vector3.ONE;
386386
} else if (offsetCenter) {
@@ -439,7 +439,7 @@ public int generateBiome(Actor actor, LocalSession session, EditSession editSess
439439
@Switch(name = 'r', desc = "Use the game's coordinate origin")
440440
boolean useRawCoords,
441441
@Switch(name = 'o', desc = "Use the placement's coordinate origin")
442-
boolean offset,
442+
boolean offsetPlacement,
443443
@Switch(name = 'c', desc = "Use the selection's center as origin")
444444
boolean offsetCenter) throws WorldEditException {
445445
final Vector3 zero;
@@ -448,7 +448,7 @@ public int generateBiome(Actor actor, LocalSession session, EditSession editSess
448448
if (useRawCoords) {
449449
zero = Vector3.ZERO;
450450
unit = Vector3.ONE;
451-
} else if (offset) {
451+
} else if (offsetPlacement) {
452452
zero = session.getPlacementPosition(actor).toVector3();
453453
unit = Vector3.ONE;
454454
} 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
@@ -498,7 +498,7 @@ public int deform(Actor actor, LocalSession session, EditSession editSession,
498498
@Switch(name = 'r', desc = "Use the game's coordinate origin")
499499
boolean useRawCoords,
500500
@Switch(name = 'o', desc = "Use the placement's coordinate origin")
501-
boolean offset,
501+
boolean offsetPlacement,
502502
@Switch(name = 'c', desc = "Use the selection's center as origin")
503503
boolean offsetCenter) throws WorldEditException {
504504
final Vector3 zero;
@@ -507,7 +507,7 @@ public int deform(Actor actor, LocalSession session, EditSession editSession,
507507
if (useRawCoords) {
508508
zero = Vector3.ZERO;
509509
unit = Vector3.ONE;
510-
} else if (offset) {
510+
} else if (offsetPlacement) {
511511
zero = session.getPlacementPosition(actor).toVector3();
512512
unit = Vector3.ONE;
513513
} else if (offsetCenter) {

0 commit comments

Comments
 (0)