diff options
author | PilzAdam <pilzadam@minetest.net> | 2013-07-20 14:50:19 +0200 |
---|---|---|
committer | RealBadAngel <mk@realbadangel.pl> | 2013-07-20 20:37:59 +0200 |
commit | cba90d4441bd2e81efb262e663e9c53c24322a54 (patch) | |
tree | 24675eb4f1bab2b2cfcb15eab63c2e72f9089450 /src/script/common | |
parent | d19c8b815dc137ea4c19e5f5a54c40693059b455 (diff) | |
download | minetest-cba90d4441bd2e81efb262e663e9c53c24322a54.tar.gz minetest-cba90d4441bd2e81efb262e663e9c53c24322a54.tar.bz2 minetest-cba90d4441bd2e81efb262e663e9c53c24322a54.zip |
Make range of tools configureable
Diffstat (limited to 'src/script/common')
-rw-r--r-- | src/script/common/c_content.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index 11f749160..7b80cc5ee 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -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 |