From f41b9897764e0f2d8d82108cac9007ebbff28635 Mon Sep 17 00:00:00 2001 From: TheMrEngMan <68214507+TheMrEngMan@users.noreply.github.com> Date: Wed, 27 Sep 2023 11:49:53 -0400 Subject: [PATCH] Properly commit last commit's changes Update fabric.mod.json with version requirements --- .../java/us/potatoboy/petowner/client/PetOwnerClient.java | 2 +- src/main/resources/fabric.mod.json | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/us/potatoboy/petowner/client/PetOwnerClient.java b/src/main/java/us/potatoboy/petowner/client/PetOwnerClient.java index 9dfe4a5..acc3ece 100644 --- a/src/main/java/us/potatoboy/petowner/client/PetOwnerClient.java +++ b/src/main/java/us/potatoboy/petowner/client/PetOwnerClient.java @@ -44,7 +44,7 @@ public class PetOwnerClient implements ClientModInitializer { playerProfile = Objects.requireNonNull(MinecraftClient.getInstance().getSessionService().fetchProfile(key, false)).profile(); usernameCache.put(key, Optional.ofNullable(playerProfile.getName())); } catch (NullPointerException e) { - usernameCache.put(key, Optional.of("Invalid UUID!")); + usernameCache.put(key, Optional.empty()); } }); diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 075db67..0acc0b2 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -28,14 +28,11 @@ ] }, "depends": { - "midnightlib": ">=1.1.0", + "midnightlib": ">=1.5.0", "fabric-api-base": "*", "fabric-key-binding-api-v1": "*", "fabric-lifecycle-events-v1": "*", - "fabric-rendering-v1": "*", - "fabric-models-v0": "*", - "fabric-resource-loader-v0": "*", - "minecraft":">=1.19.4" + "minecraft":">=1.20.2" }, "mixins": [ "petowner.mixins.json"