diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-02-28 21:47:15 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-02-28 21:47:15 +0200 |
commit | 14a71590c361b5417938c79e53879bbb931949f3 (patch) | |
tree | 8b804b44d5ff12e1af9aeb6b2491f929ac22cbe9 /data | |
parent | a5f6d65c3788da7811c5655110cc6deb95f20999 (diff) | |
parent | 806f10524f6a2cdcc1f15e12b9991ad726876d27 (diff) | |
download | minetest-14a71590c361b5417938c79e53879bbb931949f3.tar.gz minetest-14a71590c361b5417938c79e53879bbb931949f3.tar.bz2 minetest-14a71590c361b5417938c79e53879bbb931949f3.zip |
Merge remote-tracking branch 'jn/random-fixes'
Diffstat (limited to 'data')
-rw-r--r-- | data/mods/default/init.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index 3f4a8175e..7f63d9a7c 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -1650,7 +1650,7 @@ minetest.add_to_creative_inventory('default:cactus') minetest.add_to_creative_inventory('default:papyrus') minetest.add_to_creative_inventory('default:bookshelf') minetest.add_to_creative_inventory('default:glass') -minetest.add_to_creative_inventory('default:fence') +minetest.add_to_creative_inventory('default:fence_wood') minetest.add_to_creative_inventory('default:rail') minetest.add_to_creative_inventory('default:mese') minetest.add_to_creative_inventory('default:chest') @@ -1781,6 +1781,9 @@ local function handle_give_command(cmd, giver, receiver, stackstring) else partiality = "partially " end + -- The actual item stack string may be different from what the "giver" + -- entered (e.g. big numbers are always interpreted as 2^16-1). + stackstring = itemstack:to_string() if giver == receiver then minetest.chat_send_player(giver, '"'..stackstring ..'" '..partiality..'added to inventory.'); |