[SPIGOT-4788] Per world view distance causes chunks to glitch Created: 27/Apr/19  Updated: 28/Apr/19  Resolved: 28/Apr/19

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: DocVander Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.14, world
Environment:

Java 8 build 211

Windows 10

java -jar -Xms256m -Xmx8G spigot-1.14.jar


Attachments: PNG File 2019-04-27_12.39.16.png     PNG File 2019-04-27_12.39.26.png    
Version: CraftBukkit version git-Spigot-e4be9b0-a875ee4
Plugin: AnkaCore
Guidelines Read: Yes

 Description   

When spawning or teleporting to world loaded by plugins (my creative and games map)

The world has 15 of view distance.

Loaded with this code :

WorldCreator creator = WorldCreator.name("world_games");
creator.type(WorldType.FLAT);
creator.generateStructures(false);
world = Bukkit.createWorld(creator);

world.setGameRule(GameRule.DO_DAYLIGHT_CYCLE, false);
world.setGameRule(GameRule.DO_FIRE_TICK, false);
world.setGameRule(GameRule.DO_WEATHER_CYCLE, false);
world.setGameRule(GameRule.MOB_GRIEFING, false);

world.setGameRule(GameRule.RANDOM_TICK_SPEED, 0);
world.setTime(6000);

The map load the first 9 chunk normally, and the chunk at 10 chunk from my spawn point is loaded only where i was close to it (1 chunk).

All other chunk never load, i can only load the 20chunk² around my spawn point.

If i quit and join, do the same and my new spawn point is the center of this new loaded area.

 

I tried before and after the commit called "Fix loading secondary worlds", no change.

I have only one plugins, mine, managing many part of the server, but doesn't affect the chunk loading for this map (custom generator for creative map, but same problem).



 Comments   
Comment by DocVander [ 27/Apr/19 ]

sorry i forgot a point about the view distance

This 2 world use the custom view distance : in world-settings in spigot.yml
world_games:
view-distance: 15
world_crea:
view-distance: 15

 

I do more test and i find the exact case, i'ts when the world have a different view distance in spigot.yml (default or custom) than the view distance set in server.properties.

If i remove the custom settings for this 2 world in spigot.yml but set 15 in default spigot.yml and 10 to server.properties, the bug appear in all world.

If i set 10 in server properties and spigot.yml but set 15 world settings for this 2 world, the bug appear only in this 2 world.

 

For my server i need to set a low view distance to main world, but i want a huge view distance for this 2 map. working fine in 1.13

Comment by md_5 [ 27/Apr/19 ]

Cannot reproduce even with view distance 15.

World generated onEnable and teleported to onCommand.

 

Suggest following the bug report instructions properly.

Comment by md_5 [ 27/Apr/19 ]

Have you tried with default settings?

Generated at Sat Apr 05 10:22:39 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.