From cba90d4441bd2e81efb262e663e9c53c24322a54 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sat, 20 Jul 2013 14:50:19 +0200 Subject: Make range of tools configureable --- src/script/common/c_content.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/script/common') 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 -- cgit v1.2.3