Add max-projectile-speed option

Projectils can load chunks pretty intensively if too fast.
This commit is contained in:
md678685 2019-08-05 19:56:25 +01:00
parent 93d36779f0
commit 8bcef6022b
5 changed files with 19 additions and 2 deletions

View file

@ -557,6 +557,7 @@ public class Settings implements net.ess3.api.ISettings {
isSafeUsermap = _isSafeUsermap();
logCommandBlockCommands = _logCommandBlockCommands();
nickBlacklist = _getNickBlacklist();
maxProjectileSpeed = _getMaxProjectileSpeed();
}
void _lateLoadItemSpawnBlacklist() {
@ -1611,4 +1612,15 @@ public class Settings implements net.ess3.api.ISettings {
public Set<Predicate<String>> getNickBlacklist() {
return nickBlacklist;
}
private double maxProjectileSpeed;
private double _getMaxProjectileSpeed() {
return config.getDouble("max-projectile-speed", 8);
}
@Override
public double getMaxProjectileSpeed() {
return maxProjectileSpeed;
}
}