Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-26 16:12:46 +01:00
Change some comments
Dieser Commit ist enthalten in:
Ursprung
8e593a55a3
Commit
01873ea566
@ -62,7 +62,6 @@ public class ItemRegistryPopulator {
|
|||||||
static {
|
static {
|
||||||
PALETTE_VERSIONS = new Object2ObjectOpenHashMap<>();
|
PALETTE_VERSIONS = new Object2ObjectOpenHashMap<>();
|
||||||
if (GeyserConnector.getInstance().getConfig().isExtendedWorldHeight()) {
|
if (GeyserConnector.getInstance().getConfig().isExtendedWorldHeight()) {
|
||||||
// Required to send the full palette or else the client crashes
|
|
||||||
PALETTE_VERSIONS.put("1_17_10.caves_and_cliffs", new PaletteVersion(Bedrock_v448.V448_CODEC.getProtocolVersion(), Collections.emptyMap()));
|
PALETTE_VERSIONS.put("1_17_10.caves_and_cliffs", new PaletteVersion(Bedrock_v448.V448_CODEC.getProtocolVersion(), Collections.emptyMap()));
|
||||||
} else {
|
} else {
|
||||||
PALETTE_VERSIONS.put("1_17_0", new PaletteVersion(Bedrock_v440.V440_CODEC.getProtocolVersion(), new Object2ObjectOpenHashMap<String, String>() {
|
PALETTE_VERSIONS.put("1_17_0", new PaletteVersion(Bedrock_v440.V440_CODEC.getProtocolVersion(), new Object2ObjectOpenHashMap<String, String>() {
|
||||||
|
@ -462,6 +462,8 @@ public class ChunkUtils {
|
|||||||
boolean extendedHeight = dimension == 0 && session.getConnector().getConfig().isExtendedWorldHeight();
|
boolean extendedHeight = dimension == 0 && session.getConnector().getConfig().isExtendedWorldHeight();
|
||||||
session.getChunkCache().setExtendedHeight(extendedHeight);
|
session.getChunkCache().setExtendedHeight(extendedHeight);
|
||||||
|
|
||||||
|
// Yell in the console if the world height is too height in the current scenario
|
||||||
|
// The constraints change depending on if the player is in the overworld or not, and if experimental height is enabled
|
||||||
if (minY < (extendedHeight ? MINIMUM_ACCEPTED_HEIGHT_OVERWORLD : MINIMUM_ACCEPTED_HEIGHT)
|
if (minY < (extendedHeight ? MINIMUM_ACCEPTED_HEIGHT_OVERWORLD : MINIMUM_ACCEPTED_HEIGHT)
|
||||||
|| maxY > (extendedHeight ? MAXIMUM_ACCEPTED_HEIGHT_OVERWORLD : MAXIMUM_ACCEPTED_HEIGHT)) {
|
|| maxY > (extendedHeight ? MAXIMUM_ACCEPTED_HEIGHT_OVERWORLD : MAXIMUM_ACCEPTED_HEIGHT)) {
|
||||||
if (minY >= CAVES_AND_CLIFFS_MINIMUM_HEIGHT && maxY <= CAVES_AND_CLIFFS_MAXIMUM_HEIGHT && dimension == 0 && !session.getConnector().getConfig().isExtendedWorldHeight()) {
|
if (minY >= CAVES_AND_CLIFFS_MINIMUM_HEIGHT && maxY <= CAVES_AND_CLIFFS_MAXIMUM_HEIGHT && dimension == 0 && !session.getConnector().getConfig().isExtendedWorldHeight()) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren