Skip to content

Commit

Permalink
fix: lockFacing not working in an expected way
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Feb 1, 2024
1 parent 19f1320 commit a1bcbfb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ class CustomBlockManager(val plugin: LifeCore) {
it.customName = "custom_block"
it.isCustomNameVisible = false
it.isSilent = true
it.setRotation(((axis.yaw + block.axisShift) % 360).toFloat(), 0f)
if (block.lockFacing) {
it.setRotation(block.axisShift.toFloat(), 0f)
} else {
it.setRotation(((axis.yaw + block.axisShift) % 360).toFloat(), 0f)
}
it.equipment?.helmet = ItemStack(block.material).apply {
itemMeta = itemMeta?.apply {
setCustomModelData(block.customModelData)
Expand Down

0 comments on commit a1bcbfb

Please sign in to comment.