mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-12 11:10:29 +00:00
Fix problem with RepeatArgumentType
The whole "flatten" thing can probably be dropped TBH. We don't use it anywhere. Fixes #661
This commit is contained in:
parent
2232f025b8
commit
247c05305d
@ -56,7 +56,7 @@ public final class RepeatArgumentType<T, U> implements ArgumentType<List<T>>
|
||||
|
||||
public static <T> RepeatArgumentType<T, T> some( ArgumentType<T> appender, SimpleCommandExceptionType missing )
|
||||
{
|
||||
return new RepeatArgumentType<>( appender, List::add, true, missing );
|
||||
return new RepeatArgumentType<>( appender, List::add, false, missing );
|
||||
}
|
||||
|
||||
public static <T> RepeatArgumentType<T, List<T>> someFlat( ArgumentType<List<T>> appender, SimpleCommandExceptionType missing )
|
||||
|
Loading…
Reference in New Issue
Block a user