This commit is contained in:
Matvei Slotvinskiy 2024-01-26 22:46:14 +01:00 committed by GitHub
commit e35fa9139b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public class TickingTask implements Runnable {
}
// Holograms need to disappear before chunks (code taken from Bukkit)
int maxViewRange = (Bukkit.getViewDistance() - 1) * 16;
int maxViewRange = Math.max((Bukkit.getViewDistance() - 1),1) * 16;
if (maxViewRange > CoreGlobalConfig.maxViewRange) {
maxViewRange = CoreGlobalConfig.maxViewRange;
}