Skip to content

Commit

Permalink
fix: hand not swing when spinning custom block
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchen5209 committed Aug 17, 2024
1 parent fe1ea14 commit eabf00d
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
@@ -1,6 +1,6 @@
/*
* OKTW Galaxy Project
* Copyright (C) 2018-2023
* Copyright (C) 2018-2024
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
Expand Down Expand Up @@ -79,6 +79,7 @@ class Wrench {
startDirection[player] = blockPos to direction

blockEntity.facing = if (next == -1 || next > allowedFacing.lastIndex) allowedFacing.first() else allowedFacing[next]
return true
}

// Check destructible
Expand Down

0 comments on commit eabf00d

Please sign in to comment.