Fix TagArgument not being default although there are no contents
This commit is contained in:
1 parent
c94aeac84f
commit
a0c3835d0e
1 file changed
+1
-1
@@ -107,6 +107,6 @@ public class TagArgument implements IDeserializableArgument
|
|||||||
@Override
|
@Override
|
||||||
public boolean isDefault()
|
public boolean isDefault()
|
||||||
{
|
{
|
||||||
return this.tag == null && (this.providers == null || this.providers.isEmpty());
|
return this.tag == null && (this.providers == null || this.providers.isEmpty() || this.providers.stream().allMatch(provider -> provider.value() == null));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user