Skip to content

Commit

Permalink
Merge branch 'feature/1.21.2' of https://github.com/GeyserMC/Geyser i…
Browse files Browse the repository at this point in the history
…nto feature/1.21.2
  • Loading branch information
Camotoy committed Nov 4, 2024
2 parents 6452d11 + cfaa219 commit 706b18d
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
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;
Expand Down Expand Up @@ -362,17 +361,6 @@ public void setVehicleJumpStrength(int vehicleJumpStrength) {
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();
}
Expand Down

0 comments on commit 706b18d

Please sign in to comment.