mirror of
https://github.com/PaperMC/Paper.git
synced 2025-05-19 05:30:23 -07:00
[feat] add config option to configure shared entity random
This commit is contained in:
parent
1e4669e8be
commit
ffa4118c81
@ -114,7 +114,7 @@
|
|||||||
public boolean noPhysics;
|
public boolean noPhysics;
|
||||||
private boolean wasOnFire;
|
private boolean wasOnFire;
|
||||||
- public final RandomSource random = RandomSource.create();
|
- public final RandomSource random = RandomSource.create();
|
||||||
+ public final RandomSource random = SHARED_RANDOM; // Paper - Share random for entities to make them more random
|
+ public final RandomSource random = io.papermc.paper.configuration.GlobalConfiguration.get().misc.improveEntityRandomness ? SHARED_RANDOM : RandomSource.create(); // Paper - Share random for entities to make them more random
|
||||||
public int tickCount;
|
public int tickCount;
|
||||||
private int remainingFireTicks = -this.getFireImmuneTicks();
|
private int remainingFireTicks = -this.getFireImmuneTicks();
|
||||||
public boolean wasTouchingWater;
|
public boolean wasTouchingWater;
|
||||||
|
@ -344,6 +344,7 @@ public class GlobalConfiguration extends ConfigurationPart {
|
|||||||
public IntOr.Default compressionLevel = IntOr.Default.USE_DEFAULT;
|
public IntOr.Default compressionLevel = IntOr.Default.USE_DEFAULT;
|
||||||
@Comment("Defines the leniency distance added on the server to the interaction range of a player when validating interact packets.")
|
@Comment("Defines the leniency distance added on the server to the interaction range of a player when validating interact packets.")
|
||||||
public DoubleOr.Default clientInteractionLeniencyDistance = DoubleOr.Default.USE_DEFAULT;
|
public DoubleOr.Default clientInteractionLeniencyDistance = DoubleOr.Default.USE_DEFAULT;
|
||||||
|
public boolean improveEntityRandomness = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockUpdates blockUpdates;
|
public BlockUpdates blockUpdates;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user