Skip to content

Commit

Permalink
Update PlayerBlockEntity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed Sep 29, 2024
1 parent 5a18115 commit e1f5368
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 -> {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e1f5368

Please sign in to comment.