diff options
author | paramat <mat.gregory@virginmedia.com> | 2015-10-13 05:17:33 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2015-10-18 16:42:59 +0100 |
commit | 3b9f99e0d61957c571ba857301d58ad29fb44527 (patch) | |
tree | e42aca267416df268d0e971b73c1db4a7e6358fe /src/environment.h | |
parent | 2364449d7a173086c2681eae267b32e5c1596b00 (diff) | |
download | hax-minetest-server-3b9f99e0d61957c571ba857301d58ad29fb44527.tar.gz hax-minetest-server-3b9f99e0d61957c571ba857301d58ad29fb44527.zip |
ABMs: Make catch-up behaviour optional
Default is true for backwards compatibility
Update lua_api.txt
Diffstat (limited to 'src/environment.h')
-rw-r--r-- | src/environment.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/environment.h b/src/environment.h index 17d7ff19d..42faf5f6d 100644 --- a/src/environment.h +++ b/src/environment.h @@ -155,6 +155,8 @@ public: virtual float getTriggerInterval() = 0; // Random chance of (1 / return value), 0 is disallowed virtual u32 getTriggerChance() = 0; + // Whether to modify chance to simulate time lost by an unnattended block + virtual bool getSimpleCatchUp() = 0; // This is called usually at interval for 1/chance of the nodes virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n){}; virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n, |