mirror of
https://github.com/Shiewk/Widgets.git
synced 2026-04-28 11:34:17 +02:00
Support 1.21.3
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '1.6-SNAPSHOT'
|
||||
id 'fabric-loom' version '1.8.11'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
|
||||
+5
-5
@@ -2,13 +2,13 @@
|
||||
org.gradle.jvmargs=-Xmx1G
|
||||
# Fabric Properties
|
||||
# check these on https://modmuss50.me/fabric.html
|
||||
minecraft_version=1.21
|
||||
yarn_mappings=1.21+build.9
|
||||
loader_version=0.16.2
|
||||
minecraft_version=1.21.3
|
||||
yarn_mappings=1.21.3+build.2
|
||||
loader_version=0.16.8
|
||||
# Mod Properties
|
||||
mod_version=1.3.0
|
||||
mod_version=1.3.1
|
||||
maven_group=de.shiewk
|
||||
archives_base_name=Widgets
|
||||
# Dependencies
|
||||
# check this on https://modmuss50.me/fabric.html
|
||||
fabric_version=0.101.2+1.21
|
||||
fabric_version=0.106.1+1.21.3
|
||||
|
||||
@@ -14,6 +14,7 @@ import net.minecraft.client.gui.DrawContext;
|
||||
import net.minecraft.client.render.RenderTickCounter;
|
||||
import net.minecraft.util.Util;
|
||||
import net.minecraft.util.profiler.Profiler;
|
||||
import net.minecraft.util.profiler.Profilers;
|
||||
|
||||
import static de.shiewk.widgets.WidgetUtils.translateToScreen;
|
||||
|
||||
@@ -25,7 +26,7 @@ public class WidgetRenderer implements HudRenderCallback, ClientTickEvents.Start
|
||||
public void onHudRender(DrawContext drawContext, RenderTickCounter tickCounter) {
|
||||
if (client.options.hudHidden) return;
|
||||
if (client.currentScreen instanceof EditWidgetPositionsScreen) return;
|
||||
final Profiler profiler = client.getProfiler();
|
||||
final Profiler profiler = Profilers.get();
|
||||
profiler.push("widgets");
|
||||
final TextRenderer textRenderer = client.textRenderer;
|
||||
final long timeNano = Util.getMeasuringTimeNano();
|
||||
@@ -51,7 +52,8 @@ public class WidgetRenderer implements HudRenderCallback, ClientTickEvents.Start
|
||||
|
||||
@Override
|
||||
public void onStartTick(MinecraftClient client) {
|
||||
final Profiler profiler = (WidgetRenderer.client = client).getProfiler();
|
||||
WidgetRenderer.client = client;
|
||||
final Profiler profiler = Profilers.get();
|
||||
profiler.push("widgets");
|
||||
|
||||
final ObjectArrayList<ModWidget> enabled = WidgetManager.enabled;
|
||||
|
||||
Reference in New Issue
Block a user