Skip to content

Commit 2da4cef

Browse files
committed
make manager swing hand more consistent with the view model no swing delay setting
1 parent b5d57bb commit 2da4cef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/src/main/kotlin/com/lambda/util/player/PlayerUtils.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ fun SafeContext.spawnFakePlayer(
5151

5252
fun SafeContext.swingHand(swingType: BuildConfig.SwingType, hand: Hand) =
5353
when (swingType) {
54-
BuildConfig.SwingType.Vanilla -> player.swingHand(hand)
54+
BuildConfig.SwingType.Vanilla -> {
55+
swingHandClient(hand)
56+
connection.sendPacket(HandSwingC2SPacket(hand))
57+
}
5558
BuildConfig.SwingType.Server -> connection.sendPacket(HandSwingC2SPacket(hand))
5659
BuildConfig.SwingType.Client -> swingHandClient(hand)
5760
}

0 commit comments

Comments
 (0)