3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 16:12:46 +01:00

Merge branch 'feature/1.21.2' of https://github.com/GeyserMC/Geyser into feature/1.21.2

Dieser Commit ist enthalten in:
Camotoy 2024-11-04 17:56:55 -05:00
Commit 706b18d933
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F

Datei anzeigen

@ -34,7 +34,6 @@ import org.cloudburstmc.math.vector.Vector3f;
import org.cloudburstmc.protocol.bedrock.data.AttributeData; import org.cloudburstmc.protocol.bedrock.data.AttributeData;
import org.cloudburstmc.protocol.bedrock.data.entity.EntityDataTypes; import org.cloudburstmc.protocol.bedrock.data.entity.EntityDataTypes;
import org.cloudburstmc.protocol.bedrock.data.entity.EntityFlag; import org.cloudburstmc.protocol.bedrock.data.entity.EntityFlag;
import org.cloudburstmc.protocol.bedrock.packet.MoveEntityAbsolutePacket;
import org.cloudburstmc.protocol.bedrock.packet.MovePlayerPacket; import org.cloudburstmc.protocol.bedrock.packet.MovePlayerPacket;
import org.cloudburstmc.protocol.bedrock.packet.UpdateAttributesPacket; import org.cloudburstmc.protocol.bedrock.packet.UpdateAttributesPacket;
import org.geysermc.geyser.entity.attribute.GeyserAttributeType; import org.geysermc.geyser.entity.attribute.GeyserAttributeType;
@ -362,17 +361,6 @@ public class SessionPlayerEntity extends PlayerEntity {
this.vehicleJumpStrength = MathUtils.constrain(vehicleJumpStrength, 0, 100); this.vehicleJumpStrength = MathUtils.constrain(vehicleJumpStrength, 0, 100);
} }
public void forceRotationUpdate() {
MoveEntityAbsolutePacket absolutePacket = new MoveEntityAbsolutePacket();
absolutePacket.setPosition(this.getPosition());
absolutePacket.setRotation(this.getBedrockRotation());
absolutePacket.setRuntimeEntityId(this.getGeyserId());
absolutePacket.setForceMove(true);
absolutePacket.setOnGround(this.isOnGround());
session.sendUpstreamPacket(absolutePacket);
}
private boolean isBelowVoidFloor() { private boolean isBelowVoidFloor() {
return position.getY() < voidFloorPosition(); return position.getY() < voidFloorPosition();
} }