Fix sounds when using worldedit regen command
Locks dimension manager to the first world its used with. WE is creating a temp world and the world ref on that manager is getting changed to the temp world. This would of also caused a memory leak of that temp world too.
This commit is contained in:
@@ -4414,7 +4414,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
this.spigotConfig = new org.spigotmc.SpigotWorldConfig( worlddata.getName() ); // Spigot
|
||||
this.paperConfig = new com.destroystokyo.paper.PaperWorldConfig(worlddata.getName(), this.spigotConfig); // Paper
|
||||
this.generator = gen;
|
||||
+ dimensionmanager.world = (WorldServer) this; // Paper
|
||||
+ if (dimensionmanager.world == null) dimensionmanager.world = (WorldServer) this; // Paper
|
||||
this.world = new CraftWorld((WorldServer) this, gen, env);
|
||||
this.ticksPerAnimalSpawns = this.getServer().getTicksPerAnimalSpawns(); // CraftBukkit
|
||||
this.ticksPerMonsterSpawns = this.getServer().getTicksPerMonsterSpawns(); // CraftBukkit
|
||||
|
||||
Reference in New Issue
Block a user