From b36938f3bbd132d0d00a22151bc5c83858c4f46c Mon Sep 17 00:00:00 2001 From: itsmeow Date: Tue, 19 Apr 2022 04:40:30 -0500 Subject: [PATCH] Fix forge not starting and fix HoF item preview not updating from dropped items on Fabric --- .../blockentity/HandOfFateBlockEntity.java | 15 --------------- forge/build.gradle | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/common/src/main/java/dev/itsmeow/whisperwoods/blockentity/HandOfFateBlockEntity.java b/common/src/main/java/dev/itsmeow/whisperwoods/blockentity/HandOfFateBlockEntity.java index 978b36b..828f0f4 100644 --- a/common/src/main/java/dev/itsmeow/whisperwoods/blockentity/HandOfFateBlockEntity.java +++ b/common/src/main/java/dev/itsmeow/whisperwoods/blockentity/HandOfFateBlockEntity.java @@ -25,7 +25,6 @@ import net.minecraft.nbt.CompoundTag; import net.minecraft.nbt.ListTag; import net.minecraft.nbt.StringTag; -import net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket; import net.minecraft.resources.ResourceLocation; import net.minecraft.server.level.ServerChunkCache; import net.minecraft.server.level.ServerLevel; @@ -250,20 +249,6 @@ public CompoundTag save(CompoundTag compound) { return c; } - @Override - public ClientboundBlockEntityDataPacket getUpdatePacket() { - CompoundTag tag = new CompoundTag(); - this.save(tag); - return new ClientboundBlockEntityDataPacket(this.worldPosition, 1, tag); - } - - @Override - public CompoundTag getUpdateTag() { - CompoundTag tag = new CompoundTag(); - this.save(tag); - return tag; - } - @Override public void loadClientData(BlockState pos, CompoundTag tag) { this.load(pos, tag); diff --git a/forge/build.gradle b/forge/build.gradle index dcd4b0c..793a801 100644 --- a/forge/build.gradle +++ b/forge/build.gradle @@ -12,7 +12,7 @@ loom { } } forge { - mixinConfig "mixin.imdlib-whisperwoods.json", "whisperwoods.mixins.json", "whisperwoods-forge.mixins.json" + mixinConfig "mixin.imdlib-whisperwoods.json", "whisperwoods.mixins.json" accessTransformer(file("src/main/resources/META-INF/accesstransformer.cfg")) } }