Skip to content

Commit

Permalink
yeet more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
onebeastchris committed May 29, 2024
1 parent 4e1aa66 commit 97f98fe
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import org.cloudburstmc.protocol.bedrock.data.entity.EntityFlag;
import org.cloudburstmc.protocol.bedrock.packet.MovePlayerPacket;
import org.cloudburstmc.protocol.bedrock.packet.UpdateAttributesPacket;
import org.geysermc.geyser.GeyserImpl;
import org.geysermc.geyser.entity.attribute.GeyserAttributeType;
import org.geysermc.geyser.item.Items;
import org.geysermc.geyser.level.BedrockDimension;
Expand Down Expand Up @@ -103,7 +102,6 @@ public void spawnEntity() {
public void moveRelative(double relX, double relY, double relZ, float yaw, float pitch, float headYaw, boolean isOnGround) {
if (voidPositionDesynched) {
if (!isBelowVoidFloor()) {
GeyserImpl.getInstance().getLogger().error("No longer below void floor! relative");
voidPositionDesynched = false; // No need to fix our offset; we've been moved
}
}
Expand All @@ -115,7 +113,6 @@ public void moveRelative(double relX, double relY, double relZ, float yaw, float
public void moveAbsolute(Vector3f position, float yaw, float pitch, float headYaw, boolean isOnGround, boolean teleported) {
if (voidPositionDesynched) {
if (!isBelowVoidFloor()) {
GeyserImpl.getInstance().getLogger().error("No longer below void floor! absolute");
voidPositionDesynched = false; // No need to fix our offset; we've been moved
}
}
Expand Down Expand Up @@ -346,7 +343,7 @@ public int voidFloorPosition() {

public void teleportVoidFloorFix(boolean up) {
// Safety to avoid double teleports
if ((voidPositionDesynched && !up) || !voidPositionDesynched && up) {
if ((voidPositionDesynched && !up) || (!voidPositionDesynched && up)) {
return;
}

Expand Down

0 comments on commit 97f98fe

Please sign in to comment.