mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-07 16:01:55 +01:00
Increase the default chunk range
This commit is contained in:
parent
1e817ee4b5
commit
0326bd1445
@ -781,7 +781,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
*
|
||||
* @param text the text with the legacy color formatting
|
||||
* @param colorChar the color character
|
||||
*
|
||||
* @deprecated Use {@link #sendMessage(Component)}
|
||||
*/
|
||||
@Deprecated
|
||||
@ -794,7 +793,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
* Sends a legacy message with the default color char {@link ChatParser#COLOR_CHAR}.
|
||||
*
|
||||
* @param text the text with the legacy color formatting
|
||||
*
|
||||
* @deprecated Use {@link #sendMessage(Component)}
|
||||
*/
|
||||
@Deprecated
|
||||
@ -956,6 +954,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
|
||||
/**
|
||||
* Sends a {@link StopSoundPacket} packet.
|
||||
*
|
||||
* @deprecated Use {@link #stopSound(SoundStop)} with {@link SoundStop#all()}
|
||||
*/
|
||||
@Deprecated
|
||||
@ -970,7 +969,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
*
|
||||
* @param header the header text, null to set empty
|
||||
* @param footer the footer text, null to set empty
|
||||
*
|
||||
* @deprecated Use {@link #sendPlayerListHeaderAndFooter(Component, Component)}
|
||||
*/
|
||||
@Deprecated
|
||||
@ -991,7 +989,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
* @param text the text of the title
|
||||
* @param action the action of the title (where to show it)
|
||||
* @see #sendTitleTime(int, int, int) to specify the display time
|
||||
*
|
||||
* @deprecated Use {@link #showTitle(Title)} and {@link #sendActionBar(Component)}
|
||||
*/
|
||||
@Deprecated
|
||||
@ -1006,7 +1003,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
* @param title the title message
|
||||
* @param subtitle the subtitle message
|
||||
* @see #sendTitleTime(int, int, int) to specify the display time
|
||||
*
|
||||
* @deprecated Use {@link #showTitle(Title)}
|
||||
*/
|
||||
@Deprecated
|
||||
@ -1019,7 +1015,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
*
|
||||
* @param title the title message
|
||||
* @see #sendTitleTime(int, int, int) to specify the display time
|
||||
*
|
||||
* @deprecated Use {@link #showTitle(Title)}
|
||||
*/
|
||||
@Deprecated
|
||||
@ -1032,7 +1027,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
*
|
||||
* @param subtitle the subtitle message
|
||||
* @see #sendTitleTime(int, int, int) to specify the display time
|
||||
*
|
||||
* @deprecated Use {@link #showTitle(Title)}
|
||||
*/
|
||||
@Deprecated
|
||||
@ -1045,7 +1039,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
*
|
||||
* @param actionBar the action bar message
|
||||
* @see #sendTitleTime(int, int, int) to specify the display time
|
||||
*
|
||||
* @deprecated Use {@link #sendActionBar(Component)}
|
||||
*/
|
||||
@Deprecated
|
||||
@ -1074,7 +1067,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
* @param fadeIn ticks to spend fading in
|
||||
* @param stay ticks to keep the title displayed
|
||||
* @param fadeOut ticks to spend out, not when to start fading out
|
||||
*
|
||||
* @deprecated Use {@link #showTitle(Title)}. Note that this will overwrite the
|
||||
* existing title. This is expected behavior and will be the case in 1.17.
|
||||
*/
|
||||
@ -1086,6 +1078,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
|
||||
/**
|
||||
* Hides the previous title.
|
||||
*
|
||||
* @deprecated Use {@link #clearTitle()}
|
||||
*/
|
||||
@Deprecated
|
||||
@ -1120,7 +1113,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
* Opens a book ui for the player with the given book metadata.
|
||||
*
|
||||
* @param bookMeta The metadata of the book to open
|
||||
*
|
||||
* @deprecated Use {@link #openBook(Book)}
|
||||
*/
|
||||
@Deprecated
|
||||
@ -1861,7 +1853,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
* Kicks the player with a reason.
|
||||
*
|
||||
* @param text the kick reason
|
||||
*
|
||||
* @deprecated Use {@link #kick(Component)}
|
||||
*/
|
||||
@Deprecated
|
||||
@ -1873,7 +1864,6 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
* Kicks the player with a reason.
|
||||
*
|
||||
* @param message the kick reason
|
||||
*
|
||||
* @deprecated Use {@link #kick(Component)}
|
||||
*/
|
||||
@Deprecated
|
||||
@ -2489,10 +2479,10 @@ public class Player extends LivingEntity implements CommandSender, Localizable,
|
||||
final int playerRange = getSettings().viewDistance;
|
||||
if (playerRange < 1) {
|
||||
// Didn't receive settings packet yet (is the case on login)
|
||||
// In this case we send the smallest amount of chunks possible
|
||||
// In this case we send an arbitrary number of chunks
|
||||
// Will be updated in PlayerSettings#refresh.
|
||||
// Non-compliant clients might also be stuck with this view
|
||||
return 3;
|
||||
return 7;
|
||||
} else {
|
||||
final int serverRange = MinecraftServer.getChunkViewDistance();
|
||||
return Math.min(playerRange, serverRange);
|
||||
|
Loading…
Reference in New Issue
Block a user