We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a3a28bb + e4451f3 commit bb4838dCopy full SHA for bb4838d
1 file changed
common/src/main/kotlin/com/lambda/interaction/construction/context/PlaceContext.kt
@@ -28,6 +28,7 @@ import com.lambda.util.BlockUtils
28
import com.lambda.util.BlockUtils.blockState
29
import com.lambda.util.Communication.warn
30
import net.minecraft.block.BlockState
31
+import net.minecraft.util.ActionResult
32
import net.minecraft.util.Hand
33
import net.minecraft.util.hit.BlockHitResult
34
import net.minecraft.util.math.BlockPos
@@ -58,8 +59,8 @@ data class PlaceContext(
58
59
player, hand, result
60
)
61
- if (actionResult.isAccepted) {
62
- if (swingHand) {
+ if (actionResult is ActionResult.Success) {
63
+ if (actionResult.swingSource() == ActionResult.SwingSource.CLIENT && swingHand) {
64
player.swingHand(hand)
65
}
66
0 commit comments