This commit is contained in:
kawaiizenbo 2023-10-08 20:09:17 -07:00
parent a18cb2a137
commit 0982c30299
5 changed files with 9 additions and 9 deletions

View file

@ -19,7 +19,7 @@ public class ClickGUIScreen extends Screen
{
super(Text.literal("ClickGUI"));
categoryPanes = new ArrayList<CategoryPane>();
Map<String, Object> panePos = ((Map<String, Object>)Moonlight.INSTANCE.CONFIG.config.get("panes"));
Map<String, Object> panePos = ((Map<String, Object>)Moonlight.CONFIG.config.get("panes"));
for (Category category : Category.values())
{
int xOffset = MathUtils.d2iSafe(((Map<String, Object>)panePos.get(category.name)).get("x"));
@ -32,7 +32,7 @@ public class ClickGUIScreen extends Screen
@Override
public void render(DrawContext drawContext, int mouseX, int mouseY, float delta)
{
this.renderBackground(drawContext);
this.renderBackground(drawContext, mouseX, mouseY, delta);
for (CategoryPane category : categoryPanes)
{
category.render(drawContext, mouseX, mouseY, delta, textRenderer);

View file

@ -25,7 +25,7 @@ public class SettingsScreen extends Screen
@Override
public void render(DrawContext drawContext, int mouseX, int mouseY, float delta)
{
this.renderBackground(drawContext);
this.renderBackground(drawContext, mouseX, mouseY, delta);
// move window if dragging
if (dragging)