mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Configurable max block light for monster spawning
This commit is contained in:
parent
9d08734937
commit
929de37045
1 changed files with 11 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/net/minecraft/world/entity/monster/Monster.java
|
||||||
|
+++ b/net/minecraft/world/entity/monster/Monster.java
|
||||||
|
@@ -92,7 +92,7 @@
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
DimensionType dimensionType = world.dimensionType();
|
||||||
|
- int i = dimensionType.monsterSpawnBlockLightLimit();
|
||||||
|
+ int i = world.getLevel().paperConfig().entities.spawning.monsterSpawnMaxLightLevel.or(dimensionType.monsterSpawnBlockLightLimit()); // Paper - Configurable max block light for monster spawning
|
||||||
|
if (i < 15 && world.getBrightness(LightLayer.BLOCK, pos) > i) {
|
||||||
|
return false;
|
||||||
|
} else {
|
Loading…
Reference in a new issue