mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Fix merging spawning values
This commit is contained in:
parent
43d8c6fcd4
commit
889192e8f8
1 changed files with 2 additions and 3 deletions
|
@ -710,11 +710,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
return spawnercreature_d.a(entitytypes, blockposition, ichunkaccess);
|
return spawnercreature_d.a(entitytypes, blockposition, ichunkaccess);
|
||||||
}, (entityinsentient, ichunkaccess) -> {
|
}, (entityinsentient, ichunkaccess) -> {
|
||||||
spawnercreature_d.a(entityinsentient, ichunkaccess);
|
spawnercreature_d.a(entityinsentient, ichunkaccess);
|
||||||
|
- });
|
||||||
+ },
|
+ },
|
||||||
+ difference, worldserver.paperConfig.perPlayerMobSpawns ? worldserver.getChunkProvider().playerChunkMap::updatePlayerMobTypeMap : null);
|
+ difference, worldserver.paperConfig.perPlayerMobSpawns ? worldserver.getChunkProvider().playerChunkMap::updatePlayerMobTypeMap : null);
|
||||||
+ spawnercreature_d.getEntityCountsByType().mergeInt(enumcreaturetype, spawnCount, (keyInMap, valueInMap) -> {
|
+ spawnercreature_d.getEntityCountsByType().mergeInt(enumcreaturetype, spawnCount, Integer::sum);
|
||||||
+ return Integer.valueOf(spawnCount + valueInMap.intValue());
|
|
||||||
});
|
|
||||||
+ // Paper end - per player mob spawning
|
+ // Paper end - per player mob spawning
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue