diff options
author | Alexander Ried <ried@mytum.de> | 2020-07-05 15:37:31 +0200 |
---|---|---|
committer | Buckaroo Banzai <39065740+BuckarooBanzay@users.noreply.github.com> | 2020-07-13 07:21:52 +0200 |
commit | 1ea5a37bdb5b298919888ea04d8e82ef87ef2653 (patch) | |
tree | 754680e7a88c911c8273d98636457694c37cefa4 /context.lua | |
parent | 5f7cb859c58b9d72580230f59b380f64d7f9e096 (diff) | |
download | mesecons_debug-1ea5a37bdb5b298919888ea04d8e82ef87ef2653.tar.gz mesecons_debug-1ea5a37bdb5b298919888ea04d8e82ef87ef2653.zip |
fix globalstep if monitoring is absent
Diffstat (limited to 'context.lua')
-rw-r--r-- | context.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/context.lua b/context.lua index 8b667ec..6c6203c 100644 --- a/context.lua +++ b/context.lua @@ -77,7 +77,9 @@ minetest.register_globalstep(function(dtime) end end - mapblock_count.set(mesecons_debug.context_store_size) - penalized_mapblock_count.set(penalized_count) + if has_monitoring then + mapblock_count.set(mesecons_debug.context_store_size) + penalized_mapblock_count.set(penalized_count) + end end) |