From 3b9f99e0d61957c571ba857301d58ad29fb44527 Mon Sep 17 00:00:00 2001 From: paramat Date: Tue, 13 Oct 2015 05:17:33 +0100 Subject: ABMs: Make catch-up behaviour optional Default is true for backwards compatibility Update lua_api.txt --- src/environment.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/environment.h') 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, -- cgit v1.2.3