Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Oct 19, 2024
1 parent 358ae2c commit 9ea52b1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,12 @@ public void initializePlayer() {
startGamePacket.setDefaultSpawn(Vector3i.from(worldSpawn.x(), worldSpawn.y(), worldSpawn.z()));
startGamePacket.setPlayerPosition(Vector3f.from(loc.x(), loc.y(), loc.z()));
startGamePacket.setRotation(Vector2f.from(loc.pitch(), loc.yaw()));
// We don't send world send to client for security reason
// We don't send world seed to client for security reason
startGamePacket.setSeed(0L);
startGamePacket.setDimensionId(dimension.getDimensionInfo().dimensionId());
startGamePacket.setGeneratorId(dimension.getWorldGenerator().getType().getId());
startGamePacket.setLevelGameType(spawnWorld.getWorldData().getGameType());
startGamePacket.setDifficulty(spawnWorld.getWorldData().getDifficulty().ordinal());
// TODO: add it to server-settings.yml
startGamePacket.setTrustingPlayers(true);
startGamePacket.setLevelName(Server.SETTINGS.genericSettings().motd());
startGamePacket.setLevelId("");
Expand All @@ -321,7 +320,6 @@ public void initializePlayer() {
startGamePacket.setItemDefinitions(DeferredData.getItemDefinitions());
startGamePacket.setAuthoritativeMovementMode(AuthoritativeMovementMode.SERVER);
startGamePacket.setServerAuthoritativeBlockBreaking(true);
// TODO: add it to server-settings.yml
startGamePacket.setCommandsEnabled(true);
startGamePacket.setMultiplayerGame(true);
// TODO: add it to server-settings.yml
Expand Down

0 comments on commit 9ea52b1

Please sign in to comment.