3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-25 15:50:14 +01:00

Remove unused method

Dieser Commit ist enthalten in:
onebeastchris 2024-11-04 17:59:56 +08:00
Ursprung 8827173c5b
Commit cfaa219f19

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.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();
}