Skip to content

Commit

Permalink
fix: bad EntityDataSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed May 13, 2024
1 parent a52ac92 commit 351c0ea
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import com.mineinabyss.blocky.helpers.FurnitureHelpers.collisionHitboxPositions
import com.mineinabyss.blocky.helpers.GenericHelpers.toEntity
import com.mineinabyss.geary.papermc.tracking.entities.toGeary
import com.ticxo.modelengine.api.ModelEngineAPI
import io.papermc.paper.math.BlockPosition
import it.unimi.dsi.fastutil.ints.IntList
import net.minecraft.core.BlockPos
import net.minecraft.network.protocol.game.ClientboundAddEntityPacket
Expand Down Expand Up @@ -153,7 +152,7 @@ object FurniturePacketHelpers {
entityId, listOf(
outlineContent,
SynchedEntityData.DataValue(12, EntityDataSerializers.VECTOR3, Vector3f(hitbox.width, hitbox.height, hitbox.width)),
SynchedEntityData.DataValue(24, EntityDataSerializers.INT, furniture.itemDisplayTransform.ordinal)
SynchedEntityData.DataValue(24, EntityDataSerializers.BYTE, furniture.itemDisplayTransform.ordinal.toByte())
)
)

Expand Down

0 comments on commit 351c0ea

Please sign in to comment.