Cloth Config API (Fabric/Forge/NeoForge)

Cloth Config API (Fabric/Forge/NeoForge)

184M Downloads

Dropdown menus crash when setting an error supplier

Pyrofab opened this issue ยท 0 comments

commented

Calling DropdownMenuBuilder#setErrorSupplier will cause the resulting DropdownMenu to StackOverflow :

java.lang.StackOverflowError: Rendering screen
	at me.shedaniel.clothconfig2.impl.builders.DropdownMenuBuilder.lambda$build$6(DropdownMenuBuilder.java:97)
	at me.shedaniel.clothconfig2.api.AbstractConfigEntry.getConfigError(AbstractConfigEntry.java:25)
	at me.shedaniel.clothconfig2.gui.entries.DropdownBoxEntry$SelectionTopCellElement.getConfigError(DropdownBoxEntry.java:632)
	at me.shedaniel.clothconfig2.gui.entries.DropdownBoxEntry$SelectionTopCellElement.hasConfigError(DropdownBoxEntry.java:640)
	at me.shedaniel.clothconfig2.gui.entries.DropdownBoxEntry$DefaultSelectionTopCellElement.getValue(DropdownBoxEntry.java:708)
	at me.shedaniel.clothconfig2.gui.entries.DropdownBoxEntry$SelectionElement.getValue(DropdownBoxEntry.java:192)
	at me.shedaniel.clothconfig2.gui.entries.DropdownBoxEntry.getValue(DropdownBoxEntry.java:96)
	at me.shedaniel.clothconfig2.impl.builders.DropdownMenuBuilder.lambda$build$6(DropdownMenuBuilder.java:97)
	at me.shedaniel.clothconfig2.api.AbstractConfigEntry.getConfigError(AbstractConfigEntry.java:25)