summaryrefslogtreecommitdiff
path: root/luaentity.lua
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-09-12 19:47:18 +0200
committerNovatux <nathanael.courant@laposte.net>2014-09-12 19:47:43 +0200
commit5b2e3a44c35574009f66d52404bc23cab84ba6eb (patch)
treeb8b43970c111ae7b2208ff77800259fc8d3c4391 /luaentity.lua
parentbbc530a0676fbf2c06f55b3cd8ed13638eea2be3 (diff)
downloadpipeworks-5b2e3a44c35574009f66d52404bc23cab84ba6eb.tar
pipeworks-5b2e3a44c35574009f66d52404bc23cab84ba6eb.tar.gz
pipeworks-5b2e3a44c35574009f66d52404bc23cab84ba6eb.tar.bz2
pipeworks-5b2e3a44c35574009f66d52404bc23cab84ba6eb.tar.xz
pipeworks-5b2e3a44c35574009f66d52404bc23cab84ba6eb.zip
Fix #73
Diffstat (limited to 'luaentity.lua')
-rwxr-xr-xluaentity.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/luaentity.lua b/luaentity.lua
index fe81cb3..241da14 100755
--- a/luaentity.lua
+++ b/luaentity.lua
@@ -58,7 +58,7 @@ minetest.register_globalstep(function(dtime)
handle_active_blocks_timer = handle_active_blocks_timer + dtime
if handle_active_blocks_timer >= handle_active_blocks_step then
handle_active_blocks_timer = handle_active_blocks_timer - handle_active_blocks_step
- local active_block_range = tonumber(minetest.setting_get("active_block_range"))
+ local active_block_range = tonumber(minetest.setting_get("active_block_range")) or 2
local new_active_blocks = {}
for _, player in ipairs(minetest.get_connected_players()) do
local blockpos = get_blockpos(player:getpos())