Misc changes.

The first two fixes were caught by infer. The Big Bug(tm) remains
unfixed.

* Fixed the Leech nano power
* Fixed an unlikely nullptr dereference in ItemManager
* /toggleai now makes mobs retreat immediately, instead of waiting for
their next movement tick
* Static path mobs will now stop in place instead of retreating to
their spawn points when AI is disabled
* Changed the misleading config option name from "chunksize" to
"viewdistance", since it's actually only a third of the chunk size
This commit is contained in:
2020-10-14 23:15:02 +02:00
parent 6ee5e6d1ae
commit 5784e77654
7 changed files with 26 additions and 13 deletions

View File

@@ -19,8 +19,9 @@ dbsaveinterval=240
[shard]
port=8002
ip=127.0.0.1
# distance at which other players and NPCs become visible
chunksize=30000
# distance at which other players and NPCs become visible.
# this value is used for calculating chunk size
viewdistance=30000
# time, in milliseconds, to wait before kicking a non-responsive client
# default is 1 minute
timeout=60000