From f523de08dc6fd2184f370e51c56106b0e9e0ec6c Mon Sep 17 00:00:00 2001 From: ImMorpheus Date: Mon, 6 May 2024 04:23:27 +0200 Subject: [PATCH] Add archetype TODO --- .../common/block/entity/SpongeBlockEntityArchetype.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/spongepowered/common/block/entity/SpongeBlockEntityArchetype.java b/src/main/java/org/spongepowered/common/block/entity/SpongeBlockEntityArchetype.java index 59ae854ce1e..4c65288795c 100644 --- a/src/main/java/org/spongepowered/common/block/entity/SpongeBlockEntityArchetype.java +++ b/src/main/java/org/spongepowered/common/block/entity/SpongeBlockEntityArchetype.java @@ -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); }