Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 00:00:41 +01:00
Remove unused method
Dieser Commit ist enthalten in:
Ursprung
8827173c5b
Commit
cfaa219f19
@ -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();
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren