1.20.2
This commit is contained in:
parent
a18cb2a137
commit
0982c30299
5 changed files with 9 additions and 9 deletions
|
@ -4,9 +4,9 @@ org.gradle.parallel=true
|
|||
|
||||
# Fabric Properties
|
||||
# check these on https://fabricmc.net/develop
|
||||
minecraft_version=1.20.1
|
||||
yarn_mappings=1.20.1+build.8
|
||||
loader_version=0.14.21
|
||||
minecraft_version=1.20.2
|
||||
yarn_mappings=1.20.2+build.4
|
||||
loader_version=0.14.22
|
||||
|
||||
# Mod Properties
|
||||
mod_version = dev
|
||||
|
@ -14,4 +14,4 @@ org.gradle.parallel=true
|
|||
archives_base_name = moonlight
|
||||
|
||||
# Dependencies
|
||||
fabric_version=0.84.0+1.20.1
|
||||
fabric_version=0.90.0+1.20.2
|
||||
|
|
|
@ -24,7 +24,7 @@ public class HUDOverlay
|
|||
public void render(DrawContext drawContext, int scaledWidth, int scaledHeight)
|
||||
{
|
||||
// do not draw if F3 enabled
|
||||
if (mc.options.debugEnabled) return;
|
||||
if (mc.getDebugHud().shouldShowDebugHud()) return;
|
||||
|
||||
// draw stats
|
||||
drawContext.drawTextWithShadow(mc.textRenderer, "FPS: " + ColorUtils.gray + mc.fpsDebugString.split(" ")[0], 2, 2, Moonlight.uiColorA);
|
||||
|
|
|
@ -18,7 +18,7 @@ public class ModulesListOverlay
|
|||
public void render(DrawContext drawContext, int scaledWidth, int scaledHeight)
|
||||
{
|
||||
// do not draw if F3 enabled
|
||||
if (mc.options.debugEnabled) return;
|
||||
if (mc.getDebugHud().shouldShowDebugHud()) return;
|
||||
|
||||
int yOffset = 0;
|
||||
for (Module_ m : enabledModules)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue