Explorar o código

Merge pull request #8 from Hibiii/master

Fix #7, disallow coords with reduced debug info
umollu %!s(int64=4) %!d(string=hai) anos
pai
achega
a3c69c7438
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/java/com/umollu/ash/mixin/GameRendererMixin.java

+ 1 - 1
src/main/java/com/umollu/ash/mixin/GameRendererMixin.java

@@ -30,7 +30,7 @@ public class GameRendererMixin {
 			if(AshCommands.config.showFps) {
 				ashString += String.format("%d fps ", ((MinecraftClientMixin) MinecraftClient.getInstance()).getCurrentFps());
 			}
-			if(AshCommands.config.showCoords) {
+			if(AshCommands.config.showCoords && !client.hasReducedDebugInfo()) {
 				BlockPos blockPos = new BlockPos(cameraEntity.getX(), cameraEntity.getBoundingBox().getMin(Direction.Axis.Y), cameraEntity.getZ());
 				ashString += String.format("%d %d %d ", blockPos.getX(), blockPos.getY(), blockPos.getZ());
 			}