From b1f44ff2dbf8e730b4b15f33afbeac8cf98c8ac1 Mon Sep 17 00:00:00 2001 From: xtex Date: Mon, 3 Jul 2023 10:00:00 +0800 Subject: [PATCH] feat: pick up item --- .../kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt b/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt index 7833966..6f6cca7 100644 --- a/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt +++ b/common/src/main/kotlin/quaedam/projection/swarm/ProjectedPersonEntity.kt @@ -64,6 +64,10 @@ class ProjectedPersonEntity(entityType: EntityType, level: Le } + init { + setCanPickUpLoot(true) + } + override fun finalizeSpawn( serverLevelAccessor: ServerLevelAccessor, difficultyInstance: DifficultyInstance, @@ -139,6 +143,7 @@ class ProjectedPersonEntity(entityType: EntityType, level: Le super.readAdditionalSaveData(tag) shapeTag = tag.getCompound(KEY_ENTITY_SHAPE) readInventoryFromTag(tag) + setCanPickUpLoot(true) } override fun shouldShowName() = true