Closed ch4ika closed 1 year ago
The field where my mouse hovered over disappears completely at context.update, the problem is that it shouldn't be empty but the green glass from the pagination should be applied there again.
No response
@Override public void onInit(@NotNull ViewConfigBuilder config) { config.title("Belohnungen"); config.layout( "AAAAAAAAA", "XOOOOOOOX", "XOOOOOOOX", "XOOOOOOOX", "XOOOOOOOX", "AAAAAAAAA" ); } @Override public void onFirstRender(@NotNull RenderContext render) { Pagination pagination = this.pagination.get(render); StreakUser user = this.user.get(render); render.layoutSlot('X', displayPlaceholder(Material.GRAY_STAINED_GLASS_PANE)); render.layoutSlot('A', displayPlaceholder(Material.GREEN_STAINED_GLASS_PANE)); render.slot(6, 3, previous()).onClick((event) -> toPreviousPage(event, pagination)).displayIf(pagination::canBack).watch(this.pagination); render.slot(6, 7, next()).onClick((event) -> toNextPage(event, pagination)).displayIf(pagination::canAdvance).watch(this.pagination); render.slot(6, 5).renderWith(() -> displayInfo(user)); }
Now execute a click Component the context.update(); might. Then the field becomes empty, even though there should be a glass there in the pagination.
1.20.1
3.0.5
Hate to break it to you, its been an issue an issue for 2 years..
https://github.com/DevNatan/inventory-framework/issues/245
@ch4ika Was working in earlier versions, something I changed made it stop working. I will investigate. Thanks!
Is there an existing issue for this?
π Describe the bug
The field where my mouse hovered over disappears completely at context.update, the problem is that it shouldn't be empty but the green glass from the pagination should be applied there again.
βοΈ Expected behavior
No response
π£ Steps to Reproduce
Now execute a click Component the context.update(); might. Then the field becomes empty, even though there should be a glass there in the pagination.
π» Platform
β Server Version
1.20.1
π Library Version
3.0.5
βοΈ Additional context
No response