diff --git a/common/src/main/java/eu/midnightdust/midnightcontrols/client/mixin/WorldRendererMixin.java b/common/src/main/java/eu/midnightdust/midnightcontrols/client/mixin/WorldRendererMixin.java index ce1ab19..6e9d56e 100644 --- a/common/src/main/java/eu/midnightdust/midnightcontrols/client/mixin/WorldRendererMixin.java +++ b/common/src/main/java/eu/midnightdust/midnightcontrols/client/mixin/WorldRendererMixin.java @@ -68,7 +68,7 @@ private HitResult.Type dontRenderOutline(BlockHitResult instance) { @Inject( method = "renderTargetBlockOutline", - at = @At("TAIL") + at = @At("HEAD") ) private void onOutlineRender(Camera camera, VertexConsumerProvider.Immediate vertexConsumers, MatrixStack matrices, boolean translucent, CallbackInfo ci) { if (((MidnightControlsConfig.controlsMode == ControlsMode.CONTROLLER && MidnightControlsConfig.touchInControllerMode) || MidnightControlsConfig.controlsMode == ControlsMode.TOUCHSCREEN) diff --git a/gradle.properties b/gradle.properties index 2d773df..651052f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ yarn_mappings=1.21.3+build.2 enabled_platforms=fabric,neoforge archives_base_name=midnightcontrols -mod_version=1.10.0+1.21.3-alpha.1 +mod_version=1.10.1 maven_group=eu.midnightdust release_type=beta modrinth_id = bXX9h73M @@ -27,7 +27,7 @@ quilt_loader_version=0.19.0-beta.18 quilt_fabric_api_version=7.0.1+0.83.0-1.20 sodium_version=mc1.21-0.6.0-beta.1 -obsidianui_version=0.2.9+mc1.21.3 +obsidianui_version=0.2.10+mc1.21.3 modmenu_version=10.0.0-beta.1 emotecraft_version=2.1.3-SNAPSHOT-build.29-MC1.19-fabric bendylib_version=2.0.+ diff --git a/localMaven/obsidianui-0.2.9+mc1.21.3-fabric.jar b/localMaven/obsidianui-0.2.9+mc1.21.3-fabric.jar deleted file mode 100644 index 259032b..0000000 Binary files a/localMaven/obsidianui-0.2.9+mc1.21.3-fabric.jar and /dev/null differ diff --git a/localMaven/obsidianui-0.2.9+mc1.21.3-neoforge.jar b/localMaven/obsidianui-0.2.9+mc1.21.3-neoforge.jar deleted file mode 100644 index b69a3bf..0000000 Binary files a/localMaven/obsidianui-0.2.9+mc1.21.3-neoforge.jar and /dev/null differ diff --git a/neoforge/src/main/java/eu/midnightdust/midnightcontrols/client/util/platform/neoforge/NetworkUtilImpl.java b/neoforge/src/main/java/eu/midnightdust/midnightcontrols/client/util/platform/neoforge/NetworkUtilImpl.java index 3a2ac95..de0d153 100644 --- a/neoforge/src/main/java/eu/midnightdust/midnightcontrols/client/util/platform/neoforge/NetworkUtilImpl.java +++ b/neoforge/src/main/java/eu/midnightdust/midnightcontrols/client/util/platform/neoforge/NetworkUtilImpl.java @@ -19,7 +19,12 @@ public static void sendPacketC2S(Packet packet) { handler.send(packet); } public static void sendPayloadC2S(CustomPayload payload) { - if (handler != null && client.world != null) - handler.send(new CustomPayloadC2SPacket(payload)); + if (handler != null && client.world != null) { + try { + handler.send(new CustomPayloadC2SPacket(payload)); + } catch (Exception e) { + e.fillInStackTrace(); + } + } } } \ No newline at end of file