geforkt von Mirrors/FastAsyncWorldEdit
Don't use CommandContext here
Dieser Commit ist enthalten in:
Ursprung
a831ae17b7
Commit
c05cdb35d8
@ -317,8 +317,7 @@ public class UtilityCommands extends MethodCommands {
|
|||||||
)
|
)
|
||||||
@CommandPermissions("worldedit.fixlava")
|
@CommandPermissions("worldedit.fixlava")
|
||||||
@Logging(PLACEMENT)
|
@Logging(PLACEMENT)
|
||||||
public void fixLava(Player player, LocalSession session, EditSession editSession, CommandContext args) throws WorldEditException {
|
public void fixLava(Player player, LocalSession session, EditSession editSession, @Range(min = 0) double radius) throws WorldEditException {
|
||||||
double radius = Math.max(0, args.getDouble(0));
|
|
||||||
worldEdit.checkMaxRadius(radius);
|
worldEdit.checkMaxRadius(radius);
|
||||||
int affected = editSession.fixLiquid(
|
int affected = editSession.fixLiquid(
|
||||||
session.getPlacementPosition(player), radius, BlockTypes.LAVA);
|
session.getPlacementPosition(player), radius, BlockTypes.LAVA);
|
||||||
@ -334,8 +333,7 @@ public class UtilityCommands extends MethodCommands {
|
|||||||
)
|
)
|
||||||
@CommandPermissions("worldedit.fixwater")
|
@CommandPermissions("worldedit.fixwater")
|
||||||
@Logging(PLACEMENT)
|
@Logging(PLACEMENT)
|
||||||
public void fixWater(Player player, LocalSession session, EditSession editSession, CommandContext args) throws WorldEditException {
|
public void fixWater(Player player, LocalSession session, EditSession editSession, @Range(min = 0) double radius) throws WorldEditException {
|
||||||
double radius = Math.max(0, args.getDouble(0));
|
|
||||||
worldEdit.checkMaxRadius(radius);
|
worldEdit.checkMaxRadius(radius);
|
||||||
int affected = editSession.fixLiquid(
|
int affected = editSession.fixLiquid(
|
||||||
session.getPlacementPosition(player), radius, BlockTypes.WATER);
|
session.getPlacementPosition(player), radius, BlockTypes.WATER);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren