Skip to content

Commit

Permalink
Update for latest Geyser changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Camotoy committed Aug 1, 2024
1 parent 9374f91 commit c21edbd
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ public class PacketHandler extends UpstreamPacketHandler {
private final GeyserConnect geyserConnect;
private final BedrockPacketHandler originalPacketHandler;

private static final JavaDimension END_DIMENSION = new JavaDimension(0, 256, false, 1.0, 2, false);

public PacketHandler(GeyserConnect geyserConnect, GeyserSession session, BedrockPacketHandler packetHandler) {
super(session.getGeyser(), session);

Expand All @@ -66,8 +64,7 @@ public PacketHandler(GeyserConnect geyserConnect, GeyserSession session, Bedrock
this.originalPacketHandler = packetHandler;

// Spawn the player in the end (it just looks better)
session.setDimensionType(END_DIMENSION);
DimensionUtils.setBedrockDimension(session, END_DIMENSION.bedrockId());
DimensionUtils.setBedrockDimension(session, 2);
}

@Override
Expand Down

0 comments on commit c21edbd

Please sign in to comment.