fix: presistent inventory
This commit is contained in:
parent
f5bdaf34bc
commit
24080f0437
@ -95,11 +95,13 @@ class ProjectedPersonEntity(entityType: EntityType<out PathfinderMob>, level: Le
|
||||
override fun addAdditionalSaveData(tag: CompoundTag) {
|
||||
super.addAdditionalSaveData(tag)
|
||||
tag.put(KEY_ENTITY_SHAPE, shapeTag)
|
||||
writeInventoryToTag(tag)
|
||||
}
|
||||
|
||||
override fun readAdditionalSaveData(tag: CompoundTag) {
|
||||
super.readAdditionalSaveData(tag)
|
||||
shapeTag = tag.getCompound(KEY_ENTITY_SHAPE)
|
||||
readInventoryFromTag(tag)
|
||||
}
|
||||
|
||||
override fun shouldShowName() = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user