mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-09-05 03:47:56 +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:
@@ -578,3 +578,9 @@ b2e54014869fac4b819b01b6c24e550ca113ce8a
|
||||
Added Numpad Enter Support in rom lua programs. (#657)
|
||||
```
|
||||
Just lua changes.
|
||||
|
||||
```
|
||||
247c05305d106af430fcdaee41371a152bf7c38c
|
||||
|
||||
Fix problem with RepeatArgumentType
|
||||
```
|
@@ -55,8 +55,9 @@ public final class RepeatArgumentType<T, U> implements ArgumentType<List<T>> {
|
||||
this.some = some;
|
||||
}
|
||||
|
||||
public static <T> RepeatArgumentType<T, T> some(ArgumentType<T> appender, SimpleCommandExceptionType missing) {
|
||||
return new RepeatArgumentType<>(appender, List::add, true, missing);
|
||||
public static <T> RepeatArgumentType<T, T> some( ArgumentType<T> appender, SimpleCommandExceptionType missing )
|
||||
{
|
||||
return new RepeatArgumentType<>( appender, List::add, false, missing );
|
||||
}
|
||||
|
||||
public static <T> RepeatArgumentType<T, List<T>> someFlat(ArgumentType<List<T>> appender, SimpleCommandExceptionType missing) {
|
||||
|
Reference in New Issue
Block a user