Skip to content

Commit

Permalink
close #4328
Browse files Browse the repository at this point in the history
  • Loading branch information
yrsegal committed Sep 29, 2023
1 parent c6444bd commit d44ab20
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
package vazkii.quark.base.client.config.screen;

import java.util.LinkedList;
import java.util.List;

import javax.annotation.Nonnull;

import com.mojang.blaze3d.platform.Window;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.PoseStack;

import net.minecraft.client.gui.components.AbstractWidget;
import net.minecraft.client.gui.components.Button;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.network.chat.Component;
import vazkii.quark.base.client.config.screen.widgets.ScrollableWidgetList;

import javax.annotation.Nonnull;
import java.util.LinkedList;
import java.util.List;

public abstract class AbstractScrollingWidgetScreen extends AbstractQScreen {

private final List<AbstractWidget> scrollingWidgets = new LinkedList<>();
Expand Down Expand Up @@ -56,6 +54,8 @@ public void tick() {
}

public void refresh() {
for (AbstractWidget widget : scrollingWidgets)
removeWidget(widget);
scrollingWidgets.clear();

elementList.populate(w -> {
Expand Down

0 comments on commit d44ab20

Please sign in to comment.