diff options
author | root <root@linuxworks.belug.de> | 2017-07-17 10:34:34 +0200 |
---|---|---|
committer | root <root@linuxworks.belug.de> | 2017-07-17 10:34:34 +0200 |
commit | d971bd728dbc6c50af7272d7561601a41792d920 (patch) | |
tree | 6c5c441badde77d9b877f3712e7263b18031bcd3 /luaentity.lua | |
parent | ff4c154309365ab5b6aaeb58e96ed9feead166f0 (diff) | |
parent | 769dd7fe7bfd8290148b3aeb3e8cd366183a8167 (diff) |
Merge branch 'master' of https://github.com/minetest-mods/pipeworks
Diffstat (limited to 'luaentity.lua')
-rw-r--r-- | luaentity.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/luaentity.lua b/luaentity.lua index 382b0c1..34b6665 100644 --- a/luaentity.lua +++ b/luaentity.lua @@ -362,13 +362,12 @@ local move_entities_globalstep_part2 = function(dtime) end end -local handle_active_blocks_step = 0.2 local handle_active_blocks_timer = 0.1 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 + if dtime < 0.2 or handle_active_blocks_timer >= (dtime * 3) then + handle_active_blocks_timer = 0.1 move_entities_globalstep_part1(dtime) move_entities_globalstep_part2(dtime) end |