forked from GeyserMC/Geyser
Fixed single line if statements
This commit is contained in:
parent
522dc864de
commit
8fd4632d07
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,9 @@ public class BedrockAnimateTranslator extends PacketTranslator<AnimatePacket> {
|
||||||
@Override
|
@Override
|
||||||
public void translate(AnimatePacket packet, GeyserSession session) {
|
public void translate(AnimatePacket packet, GeyserSession session) {
|
||||||
// Stop the player sending animations before they have fully spawned into the server
|
// Stop the player sending animations before they have fully spawned into the server
|
||||||
if (!session.isSpawned()) { return; }
|
if (!session.isSpawned()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (packet.getAction()) {
|
switch (packet.getAction()) {
|
||||||
case SWING_ARM:
|
case SWING_ARM:
|
||||||
|
|
Loading…
Reference in a new issue