Skip to content

Commit

Permalink
fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed Jan 30, 2024
1 parent 477eae2 commit 25735e9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}
Expand Down
8 changes: 4 additions & 4 deletions Quilt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion Quilt/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

0 comments on commit 25735e9

Please sign in to comment.