]> git.lizzy.rs Git - minetest.git/blobdiff - src/script/common/c_content.cpp
Make range of tools configureable
[minetest.git] / src / script / common / c_content.cpp
index 11f74916013960a12ac2ad273d50bf4880d4fb4a..7b80cc5ee9086c0a9c87a14002bd6ab5fa7dfd45 100644 (file)
@@ -100,6 +100,8 @@ ItemDefinition read_item_definition(lua_State* L,int index,
        }
        lua_pop(L, 1);
 
+       def.range = getfloatfield_default(L, index, "range", def.range);
+
        // Client shall immediately place this node when player places the item.
        // Server will update the precise end result a moment later.
        // "" = no prediction