Skip to content

Commit

Permalink
Add archetype TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMorpheus committed May 6, 2024
1 parent 4397847 commit f523de0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ public String toString() {
if (this.cachedBlockEntity == null) {
final CompoundTag compound = this.compound.copy();
compound.putString(Constants.Item.BLOCK_ENTITY_ID, SpongeCommon.vanillaRegistry(Registries.BLOCK_ENTITY_TYPE).getKey((net.minecraft.world.level.block.entity.BlockEntityType<?>) this.type).toString());
this.cachedBlockEntity = net.minecraft.world.level.block.entity.BlockEntity.loadStatic(new BlockPos(0, 0, 0), (net.minecraft.world.level.block.state.BlockState) this.blockState, compound);
//TODO fixme
//this.cachedBlockEntity = net.minecraft.world.level.block.entity.BlockEntity.loadStatic(new BlockPos(0, 0, 0), (net.minecraft.world.level.block.state.BlockState) this.blockState, compound);
}
return Arrays.asList(this, (DataHolder) this.cachedBlockEntity);
}
Expand Down

0 comments on commit f523de0

Please sign in to comment.