Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-25 15:50:14 +01:00
Merge branch 'feature/1.21.2' of https://github.com/GeyserMC/Geyser into feature/1.21.2
Dieser Commit ist enthalten in:
Commit
706b18d933
@ -34,7 +34,6 @@ import org.cloudburstmc.math.vector.Vector3f;
|
||||
import org.cloudburstmc.protocol.bedrock.data.AttributeData;
|
||||
import org.cloudburstmc.protocol.bedrock.data.entity.EntityDataTypes;
|
||||
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.UpdateAttributesPacket;
|
||||
import org.geysermc.geyser.entity.attribute.GeyserAttributeType;
|
||||
@ -362,17 +361,6 @@ public class SessionPlayerEntity extends PlayerEntity {
|
||||
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() {
|
||||
return position.getY() < voidFloorPosition();
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren