From 25735e92c91eaee7f1e5482a25c2282d64ddf274 Mon Sep 17 00:00:00 2001 From: Up Date: Tue, 30 Jan 2024 13:25:40 +0100 Subject: [PATCH] fix compile errors --- .../camsbackpacks/client/screen/BackpackScreen.java | 10 ++++------ Quilt/build.gradle | 8 ++++---- Quilt/libs.versions.toml | 2 +- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/Common/src/main/java/dev/cammiescorner/camsbackpacks/client/screen/BackpackScreen.java b/Common/src/main/java/dev/cammiescorner/camsbackpacks/client/screen/BackpackScreen.java index 7a91f3c..55e3b33 100644 --- a/Common/src/main/java/dev/cammiescorner/camsbackpacks/client/screen/BackpackScreen.java +++ b/Common/src/main/java/dev/cammiescorner/camsbackpacks/client/screen/BackpackScreen.java @@ -12,8 +12,6 @@ import net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen; import net.minecraft.client.gui.screens.inventory.InventoryScreen; import net.minecraft.client.renderer.GameRenderer; -import net.minecraft.nbt.CompoundTag; -import net.minecraft.nbt.NbtUtils; import net.minecraft.network.chat.Component; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.EquipmentSlot; @@ -82,11 +80,11 @@ protected void renderLabels(GuiGraphics gui, int mouseX, int mouseY) { @Override public void render(GuiGraphics gui, int mouseX, int mouseY, float delta) { - renderBackground(gui); + renderBackground(gui, mouseX, mouseY, delta); super.render(gui, mouseX, mouseY, delta); renderTooltip(gui, mouseX, mouseY); - InventoryScreen.renderEntityInInventoryFollowsMouse(gui, leftPos + 50, topPos + 125, 30, (leftPos + 50) - mouseX, (topPos + 125 - 50) - mouseY, player); + InventoryScreen.renderEntityInInventoryFollowsMouse(gui, leftPos + 50, topPos + 125, leftPos + 80, topPos + 200, 30, 0.0625F, mouseX, mouseY, player); if (equipButton.isHovered() && !equipButton.active) { if (!menu.isBlockEntity) @@ -149,8 +147,8 @@ private void openVanillaInventory(Button button) { public static ItemStack getPlayerHead(Player player) { ItemStack head = new ItemStack(Blocks.PLAYER_HEAD); - CompoundTag tag = head.getOrCreateTag(); - SkullBlockEntity.updateGameprofile(player.getGameProfile(), (profile) -> tag.put("SkullOwner", NbtUtils.writeGameProfile(new CompoundTag(), profile))); + head.getOrCreateTag().putString("SkullOwner", player.getGameProfile().getName()); + SkullBlockEntity.resolveGameProfile(head.getTag()); return head; } diff --git a/Quilt/build.gradle b/Quilt/build.gradle index 0fc5345..22f5df4 100644 --- a/Quilt/build.gradle +++ b/Quilt/build.gradle @@ -31,10 +31,10 @@ dependencies { modCompileOnly quilt.hephaestus modCompileOnly quilt.inventorio - modImplementation quilt.universalgraves - modLocalRuntime(quilt.bundles.universalgraves.runtime) { - exclude(group: "io.github.llamalad7") - } + modCompileOnly quilt.universalgraves +// modLocalRuntime(quilt.bundles.universalgraves.runtime) { +// exclude(group: "io.github.llamalad7") +// } modLocalRuntime quilt.lazydfu } diff --git a/Quilt/libs.versions.toml b/Quilt/libs.versions.toml index 7ac4271..53591ba 100644 --- a/Quilt/libs.versions.toml +++ b/Quilt/libs.versions.toml @@ -46,7 +46,7 @@ fabric-permissions-api = { module = "me.lucko:fabric-permissions-api", version.r # If you have multiple similar dependencies, you can declare a dependency bundle and reference it on the build script with "libs.bundles.example". [bundles] quilted_fabric_api = ["quilted_fabric_api", "quilted_fabric_api_deprecated"] -universalgraves_runtime = ["sgui", "placeholder-api", "polymer-core", "polymer-resource-pack", "polymer-virtual-entity", "predicate-api", "common-protection-api", "server-translations-api", "fabric-permissions-api"] +universalgraves_runtime = ["universalgraves", "sgui", "placeholder-api", "polymer-core", "polymer-resource-pack", "polymer-virtual-entity", "predicate-api", "common-protection-api", "server-translations-api", "fabric-permissions-api"] [plugins] quilt_loom = { id = "org.quiltmc.loom", version.ref = "quilt_loom" }