Skip to content

Commit

Permalink
fix: workaround disable state update for bell
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchen5209 committed Aug 18, 2024
1 parent eabf00d commit bd3f1bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/one/oktw/galaxy/item/event/Wrench.kt
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ class Wrench {

world.setBlockState(blockPos, newState)
world.updateNeighbor(newState, blockPos, newState.block, blockPos, true)
Block.postProcessState(newState, world, blockPos).let { if (!it.isAir) world.setBlockState(blockPos, it, 2) }
// Workaround disable state update for bell
Block.postProcessState(newState, world, blockPos).let { if (!it.isAir && it.block != BELL) world.setBlockState(blockPos, it, 2) }

return true
}
Expand Down

0 comments on commit bd3f1bd

Please sign in to comment.