Fixed issue with wron type
This commit is contained in:
parent
38c01b8c76
commit
ffffeb78ee
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import net.minecraft.client.gui.screens.Screen;
|
||||||
import net.minecraft.network.chat.CommonComponents;
|
import net.minecraft.network.chat.CommonComponents;
|
||||||
import net.minecraft.network.chat.TranslatableComponent;
|
import net.minecraft.network.chat.TranslatableComponent;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
import ru.bclib.config.ConfigKeeper.BooleanEntry;
|
||||||
import ru.bclib.config.Configs;
|
import ru.bclib.config.Configs;
|
||||||
import ru.bclib.config.NamedPathConfig;
|
import ru.bclib.config.NamedPathConfig;
|
||||||
import ru.bclib.config.NamedPathConfig.ConfigTokenDescription;
|
import ru.bclib.config.NamedPathConfig.ConfigTokenDescription;
|
||||||
|
@ -35,7 +36,7 @@ public class MainScreen extends GridScreen{
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
protected <T>void addRow(GridColumn grid, NamedPathConfig config, ConfigTokenDescription<T> option){
|
protected <T>void addRow(GridColumn grid, NamedPathConfig config, ConfigTokenDescription<T> option){
|
||||||
if (Boolean.class.isAssignableFrom(option.token.type)) {
|
if (BooleanEntry.class.isAssignableFrom(option.token.type)) {
|
||||||
addCheckbox(grid, config, (ConfigTokenDescription<Boolean>)option);
|
addCheckbox(grid, config, (ConfigTokenDescription<Boolean>)option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue