mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 17:47:38 +01:00
Method name to table provider builder in case its doubling tables
This commit is contained in:
parent
322ec3c57c
commit
e922697ced
@ -150,10 +150,10 @@ public class DataValueGatherer {
|
||||
}
|
||||
|
||||
private DataValue<Table> tryToBuildTable(ExtensionDataBuilder dataBuilder, Parameters parameters, ExtensionMethod provider) {
|
||||
|
||||
TableProvider annotation = provider.getExistingAnnotation(TableProvider.class);
|
||||
try {
|
||||
return dataBuilder.valueBuilder(provider.getMethodName())
|
||||
.methodName(provider)
|
||||
.conditional(provider.getAnnotationOrNull(Conditional.class))
|
||||
.showOnTab(provider.getAnnotationOrNull(Tab.class))
|
||||
.buildTable(() -> callMethod(provider, parameters, Table.class), annotation.tableColor());
|
||||
|
Loading…
Reference in New Issue
Block a user