summaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-10-13 05:17:33 +0100
committerparamat <mat.gregory@virginmedia.com>2015-10-18 16:42:59 +0100
commit3b9f99e0d61957c571ba857301d58ad29fb44527 (patch)
treee42aca267416df268d0e971b73c1db4a7e6358fe /src/environment.h
parent2364449d7a173086c2681eae267b32e5c1596b00 (diff)
downloadminetest-3b9f99e0d61957c571ba857301d58ad29fb44527.tar.gz
minetest-3b9f99e0d61957c571ba857301d58ad29fb44527.tar.bz2
minetest-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.h2
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,