diff options
author | orwell96 <orwell@bleipb.de> | 2018-10-17 21:02:43 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-10-17 21:06:13 +0200 |
commit | b03e402c718e8bc39d8aa57c5fe67c5722708c37 (patch) | |
tree | d61f49db100a3003d5280dff4309ac368123e0e2 /advtrains_luaautomation/active_common.lua | |
parent | a71041b66b0518625083560a4acb7f38bbc18148 (diff) | |
download | advtrains-b03e402c718e8bc39d8aa57c5fe67c5722708c37.tar.gz advtrains-b03e402c718e8bc39d8aa57c5fe67c5722708c37.tar.bz2 advtrains-b03e402c718e8bc39d8aa57c5fe67c5722708c37.zip |
Fix node database ATC rail bug
After successfully registering newly-placed ATC rails in the nodedb, the rail's after_place_node() callback
(local apn_func()) immediately cleared it again by passing a "node" object that was actually a player object
and thus had no "name" or "param2" to ndb.update(), which it handled how it should not in this situation.
Since those ndb.update calls were unnecessary anyways, I removed them completely.
Diffstat (limited to 'advtrains_luaautomation/active_common.lua')
-rw-r--r-- | advtrains_luaautomation/active_common.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/advtrains_luaautomation/active_common.lua b/advtrains_luaautomation/active_common.lua index 62dc83c..d996dbf 100644 --- a/advtrains_luaautomation/active_common.lua +++ b/advtrains_luaautomation/active_common.lua @@ -12,7 +12,6 @@ function ac.save() end function ac.after_place_node(pos, player) - advtrains.ndb.update(pos) local meta=minetest.get_meta(pos) meta:set_string("formspec", ac.getform(pos, meta)) meta:set_string("infotext", "LuaAutomation component, unconfigured.") |