diff --git a/src/main/java/com/shynieke/statues/blockentities/PlayerBlockEntity.java b/src/main/java/com/shynieke/statues/blockentities/PlayerBlockEntity.java index 93ab5381..6a828290 100644 --- a/src/main/java/com/shynieke/statues/blockentities/PlayerBlockEntity.java +++ b/src/main/java/com/shynieke/statues/blockentities/PlayerBlockEntity.java @@ -7,7 +7,9 @@ import com.mojang.authlib.yggdrasil.ProfileResult; import com.shynieke.statues.Statues; import com.shynieke.statues.blocks.statues.PlayerStatueBlock; +import com.shynieke.statues.datacomponent.StatueUpgrades; import com.shynieke.statues.registry.StatueBlockEntities; +import com.shynieke.statues.registry.StatueDataComponents; import com.shynieke.statues.registry.StatueRegistry; import net.minecraft.Util; import net.minecraft.core.BlockPos; @@ -210,11 +212,6 @@ public void setPlayerProfileFromName(@Nullable Component component) { } } - @Override - public void saveToItem(ItemStack stack, HolderLookup.Provider registries) { - super.saveToItem(stack, registries); - } - private void updateOwnerProfile() { if (this.playerProfile != null && !this.playerProfile.isResolved()) { this.resolve(this.playerProfile).thenAcceptAsync(profile -> { @@ -296,6 +293,11 @@ public static void serverTick(Level level, BlockPos pos, BlockState state, Playe } } + @Override + public void saveToItem(ItemStack stack, HolderLookup.Provider registries) { + super.saveToItem(stack, registries); + } + @Override protected void applyImplicitComponents(BlockEntity.DataComponentInput input) { super.applyImplicitComponents(input);