From 50110e00e88e9fcc2379faf465b105003c3b616b Mon Sep 17 00:00:00 2001 From: Jonathan Neuschäfer Date: Thu, 16 Feb 2012 13:28:25 +0100 Subject: creative inventory: update to use default:fence_wood --- data/mods/default/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/mods/default') diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index d07337379..f11b61100 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -1647,7 +1647,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') -- cgit v1.2.3 From 806f10524f6a2cdcc1f15e12b9991ad726876d27 Mon Sep 17 00:00:00 2001 From: Jonathan Neuschäfer Date: Sat, 11 Feb 2012 03:16:44 +0100 Subject: server: /give: show the actual stackstring --- data/mods/default/init.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data/mods/default') diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index f11b61100..76c07d825 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -1778,6 +1778,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.'); -- cgit v1.2.3