From cfaa219f192b017163ea0c44b683ca9edac215dd Mon Sep 17 00:00:00 2001 From: onebeastchris Date: Mon, 4 Nov 2024 17:59:56 +0800 Subject: [PATCH] Remove unused method --- .../entity/type/player/SessionPlayerEntity.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/src/main/java/org/geysermc/geyser/entity/type/player/SessionPlayerEntity.java b/core/src/main/java/org/geysermc/geyser/entity/type/player/SessionPlayerEntity.java index ee56e25a7..bfa30fed4 100644 --- a/core/src/main/java/org/geysermc/geyser/entity/type/player/SessionPlayerEntity.java +++ b/core/src/main/java/org/geysermc/geyser/entity/type/player/SessionPlayerEntity.java @@ -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(); }