Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 19:02:36 +01:00
Fix minor bugs in converters
Dieser Commit ist enthalten in:
Ursprung
d0f9a71d53
Commit
7188d27aaa
@ -34,7 +34,7 @@ public class BooleanConverter {
|
|||||||
.putAll(true, "on", "t", "true", "y", "yes")
|
.putAll(true, "on", "t", "true", "y", "yes")
|
||||||
.build()
|
.build()
|
||||||
)
|
)
|
||||||
.errorMessage(arg -> "Not a boolean value" + arg)
|
.errorMessage(arg -> "Not a boolean value: " + arg)
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -53,14 +53,14 @@ public class VectorConverter<C, T> implements ArgumentConverter<T> {
|
|||||||
commandManager.registerConverter(Key.of(Vector2.class),
|
commandManager.registerConverter(Key.of(Vector2.class),
|
||||||
new VectorConverter<>(
|
new VectorConverter<>(
|
||||||
doubleConverter,
|
doubleConverter,
|
||||||
3,
|
2,
|
||||||
cmps -> Vector2.at(cmps.get(0), cmps.get(1)),
|
cmps -> Vector2.at(cmps.get(0), cmps.get(1)),
|
||||||
"vector with x and z"
|
"vector with x and z"
|
||||||
));
|
));
|
||||||
commandManager.registerConverter(Key.of(BlockVector3.class),
|
commandManager.registerConverter(Key.of(BlockVector3.class),
|
||||||
new VectorConverter<>(
|
new VectorConverter<>(
|
||||||
intConverter,
|
intConverter,
|
||||||
2,
|
3,
|
||||||
cmps -> BlockVector3.at(cmps.get(0), cmps.get(1), cmps.get(2)),
|
cmps -> BlockVector3.at(cmps.get(0), cmps.get(1), cmps.get(2)),
|
||||||
"block vector with x, y, and z"
|
"block vector with x, y, and z"
|
||||||
));
|
));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren