mirror of https://github.com/Minestom/Minestom.git
Default simulation distance to view distance
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
f12b1e1e58
commit
a94cc20dba
|
@ -240,6 +240,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
|||
joinGamePacket.dimensionType = dimensionType;
|
||||
joinGamePacket.maxPlayers = 0; // Unused
|
||||
joinGamePacket.viewDistance = MinecraftServer.getChunkViewDistance();
|
||||
joinGamePacket.simulationDistance = MinecraftServer.getChunkViewDistance();
|
||||
joinGamePacket.reducedDebugInfo = false;
|
||||
joinGamePacket.isFlat = levelFlat;
|
||||
playerConnection.sendPacket(joinGamePacket);
|
||||
|
|
|
@ -24,7 +24,7 @@ public class JoinGamePacket implements ServerPacket {
|
|||
public long hashedSeed;
|
||||
public int maxPlayers = 0; // Unused
|
||||
public int viewDistance;
|
||||
public int simulationViewDistance = 8;
|
||||
public int simulationDistance;
|
||||
public boolean reducedDebugInfo = false;
|
||||
public boolean enableRespawnScreen = true;
|
||||
public boolean isDebug = false;
|
||||
|
@ -64,7 +64,7 @@ public class JoinGamePacket implements ServerPacket {
|
|||
writer.writeLong(hashedSeed);
|
||||
writer.writeVarInt(maxPlayers);
|
||||
writer.writeVarInt(viewDistance);
|
||||
writer.writeVarInt(simulationViewDistance);
|
||||
writer.writeVarInt(simulationDistance);
|
||||
writer.writeBoolean(reducedDebugInfo);
|
||||
writer.writeBoolean(enableRespawnScreen);
|
||||
//debug
|
||||
|
@ -91,6 +91,7 @@ public class JoinGamePacket implements ServerPacket {
|
|||
hashedSeed = reader.readLong();
|
||||
maxPlayers = reader.readVarInt();
|
||||
viewDistance = reader.readVarInt();
|
||||
simulationDistance = reader.readVarInt();
|
||||
reducedDebugInfo = reader.readBoolean();
|
||||
enableRespawnScreen = reader.readBoolean();
|
||||
isDebug = reader.readBoolean();
|
||||
|
|
Loading…
Reference in New Issue