mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-31 04:46:29 +00:00
fix: fix logic
This commit is contained in:
@@ -32,7 +32,7 @@ public class CustomArgumentNode<T, B> extends ArgumentNode<B> {
|
||||
protected ArgumentBuilder<CommandSourceStack, ?> compileBase() {
|
||||
RequiredArgumentBuilder<CommandSourceStack, T> argumentBuilder = (RequiredArgumentBuilder<CommandSourceStack, T>) super.compileBase();
|
||||
|
||||
if (overrideSuggestions()) {
|
||||
if (!overrideSuggestions()) {
|
||||
CustomArgumentType<T, B> customArgumentType = (CustomArgumentType<T, B>) TYPES.get(getClass());
|
||||
argumentBuilder.suggests(
|
||||
(context, builder) -> customArgumentType.getSuggestions(new CommandContext(context), builder)
|
||||
|
||||
Reference in New Issue
Block a user