fix more compile errors

This commit is contained in:
MattBDev
2019-07-29 21:05:31 -04:00
parent 12114ec987
commit 198427dc3d
9 changed files with 44 additions and 21 deletions

View File

@ -126,7 +126,8 @@ public class ClipboardCommands {
BlockVector3 min = region.getMinimumPoint();
BlockVector3 max = region.getMaximumPoint();
long volume = (((long) max.getX() - (long) min.getX() + 1) * ((long) max.getY() - (long) min.getY() + 1) * ((long) max.getZ() - (long) min.getZ() + 1));
long volume =
((long) max.getX() - (long) min.getX() + 1) * ((long) max.getY() - (long) min.getY() + 1) * ((long) max.getZ() - (long) min.getZ() + 1);
FaweLimit limit = FawePlayer.wrap(player).getLimit();
if (volume >= limit.MAX_CHECKS) {
throw FaweException.MAX_CHECKS;

View File

@ -88,8 +88,7 @@ public class MaskCommands {
}
@Command(
name = "false",
aliases = {"#false"},
name = "#false",
desc = "Always false"
)
public Mask falseMask(Extent extent) {
@ -97,8 +96,7 @@ public class MaskCommands {
}
@Command(
name = "true",
aliases = {"#true"},
name = "#true",
desc = "Always true"
)
public Mask trueMask(Extent extent) {

View File

@ -547,7 +547,7 @@ public class RegionCommands {
boolean skipEntities,
@Switch(name = 'a', desc = "Ignore air blocks")
boolean ignoreAirBlocks,
@Switch(name = 'm', desc = "Source mask")
@ArgFlag(name = "m", desc = "Source mask")
Mask sourceMask,
InjectedValueAccess context) throws WorldEditException {
player.checkConfirmationStack(() -> {
@ -677,7 +677,7 @@ public class RegionCommands {
int thickness,
@Arg(desc = "The pattern of blocks to replace the hollowed area with", def = "air")
Pattern pattern,
@Switch(name = 'm', desc = "Mask to hollow with") Mask mask,
@ArgFlag(name = "m", desc = "Mask to hollow with") Mask mask,
InjectedValueAccess context) throws WorldEditException {
checkCommandArgument(thickness >= 0, "Thickness must be >= 0");
Mask finalMask = mask == null ? new SolidBlockMask(editSession) : mask;

View File

@ -577,7 +577,7 @@ public class SchematicCommands {
boolean oldFirst,
@Switch(name = 'n', desc = "Sort by date, newest first")
boolean newFirst,
@Switch(name = 'f', desc = "Restricts by format.")
@ArgFlag(name = 'f', desc = "Restricts by format.")
String formatName,
@Arg(name = "filter", desc = "Filter for schematics", def = "all")
String filter) throws WorldEditException {