SPIGOT-4975: NPE on WorldGenStronghold When Using Multiple Worlds
By: md_5 <git@md-5.net>
This commit is contained in:
11
paper-server/nms-patches/WorldGenStronghold.patch
Normal file
11
paper-server/nms-patches/WorldGenStronghold.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/net/minecraft/server/WorldGenStronghold.java
|
||||
+++ b/net/minecraft/server/WorldGenStronghold.java
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
- public BlockPosition getNearestGeneratedFeature(World world, ChunkGenerator<? extends GeneratorSettingsDefault> chunkgenerator, BlockPosition blockposition, int i, boolean flag) {
|
||||
+ public synchronized BlockPosition getNearestGeneratedFeature(World world, ChunkGenerator<? extends GeneratorSettingsDefault> chunkgenerator, BlockPosition blockposition, int i, boolean flag) { // CraftBukkit - synchronized
|
||||
if (!chunkgenerator.getWorldChunkManager().a(this)) {
|
||||
return null;
|
||||
} else {
|
||||
Reference in New Issue
Block a user