mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-27 10:49:10 +00:00
Merge pull request #331 from rtm516/early-animation-fix
Prevents animations from being sent to the server before the player has spawned
This commit is contained in:
@@ -40,6 +40,11 @@ public class BedrockAnimateTranslator extends PacketTranslator<AnimatePacket> {
|
||||
|
||||
@Override
|
||||
public void translate(AnimatePacket packet, GeyserSession session) {
|
||||
// Stop the player sending animations before they have fully spawned into the server
|
||||
if (!session.isSpawned()) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (packet.getAction()) {
|
||||
case SWING_ARM:
|
||||
// Delay so entity damage can be processed first
|
||||
|
||||
Reference in New Issue
Block a user