summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-07-20 14:50:19 +0200
committerRealBadAngel <mk@realbadangel.pl>2013-07-20 20:37:59 +0200
commitcba90d4441bd2e81efb262e663e9c53c24322a54 (patch)
tree24675eb4f1bab2b2cfcb15eab63c2e72f9089450 /src/script
parentd19c8b815dc137ea4c19e5f5a54c40693059b455 (diff)
downloadminetest-cba90d4441bd2e81efb262e663e9c53c24322a54.tar.gz
minetest-cba90d4441bd2e81efb262e663e9c53c24322a54.tar.bz2
minetest-cba90d4441bd2e81efb262e663e9c53c24322a54.zip
Make range of tools configureable
Diffstat (limited to 'src/script')
-rw-r--r--src/script/common/c_content.cpp2
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