Compare commits

..

No commits in common. "24080f04371b8f1bbc0235346940dd7987500c6b" and "9251e5773bde290e802f5bcf098b62df0b8f47d9" have entirely different histories.

View File

@ -6,7 +6,6 @@ import dev.architectury.registry.level.entity.EntityAttributeRegistry
import net.fabricmc.api.EnvType
import net.minecraft.nbt.CompoundTag
import net.minecraft.network.chat.Component
import net.minecraft.network.protocol.game.DebugPackets
import net.minecraft.network.syncher.EntityDataAccessor
import net.minecraft.network.syncher.EntityDataSerializers
import net.minecraft.network.syncher.SynchedEntityData
@ -95,13 +94,11 @@ 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
@ -139,11 +136,4 @@ class ProjectedPersonEntity(entityType: EntityType<out PathfinderMob>, level: Le
InventoryCarrier.pickUpItem(this, this, item)
}
override fun sendDebugPackets() {
super.sendDebugPackets()
DebugPackets.sendEntityBrain(this)
}
override fun removeWhenFarAway(d: Double) = false
}