mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
Fix bad diff in wandering trader spawn rate patch from .4 update
This commit is contained in:
@@ -73,9 +73,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
int i = this.spawnChance;
|
int i = this.spawnChance;
|
||||||
|
|
||||||
- this.spawnChance = Mth.clamp(this.spawnChance + 25, 25, 75);
|
- this.spawnChance = Mth.clamp(this.spawnChance + 25, 25, 75);
|
||||||
this.serverLevelData.setWanderingTraderSpawnChance(this.spawnChance);
|
- this.serverLevelData.setWanderingTraderSpawnChance(this.spawnChance);
|
||||||
|
+ // this.serverLevelData.setWanderingTraderSpawnChance(this.spawnChance); // Paper - We don't need to save this value to disk if it gets set back to a hardcoded value anyways
|
||||||
+ this.spawnChance = Mth.clamp(i + world.paperConfig().entities.spawning.wanderingTrader.spawnChanceFailureIncrement, world.paperConfig().entities.spawning.wanderingTrader.spawnChanceMin, world.paperConfig().entities.spawning.wanderingTrader.spawnChanceMax);
|
+ this.spawnChance = Mth.clamp(i + world.paperConfig().entities.spawning.wanderingTrader.spawnChanceFailureIncrement, world.paperConfig().entities.spawning.wanderingTrader.spawnChanceMin, world.paperConfig().entities.spawning.wanderingTrader.spawnChanceMax);
|
||||||
+ //this.serverLevelData.setWanderingTraderSpawnChance(this.spawnChance); // Paper - We don't need to save this value to disk if it gets set back to a hardcoded value anyways
|
|
||||||
if (this.random.nextInt(100) > i) {
|
if (this.random.nextInt(100) > i) {
|
||||||
return 0;
|
return 0;
|
||||||
} else if (this.spawn(world)) {
|
} else if (this.spawn(world)) {
|
||||||
|
Reference in New Issue
Block a user