Allow for shift+clicking inventory from bones
authorRui <Rui914@users.noreply.github.com>
Wed, 16 Mar 2016 11:10:25 +0000 (20:10 +0900)
committerparamat <mat.gregory@virginmedia.com>
Mon, 21 Mar 2016 06:17:33 +0000 (06:17 +0000)
mods/bones/init.lua

index 39502f1d90078e2128fd5c6a810818c288ba7295..afa56eca5375fab7bbc99e7cd852a48da348b90f 100644 (file)
@@ -12,17 +12,19 @@ local function is_owner(pos, name)
 end
 
 bones.bones_formspec =
-       "size[8,9]"..
-       default.gui_bg..
-       default.gui_bg_img..
-       default.gui_slots..
-       "list[current_name;main;0,0.3;8,4;]"..
-       "list[current_player;main;0,4.85;8,1;]"..
-       "list[current_player;main;0,6.08;8,3;8]"..
+       "size[8,9]" ..
+       default.gui_bg ..
+       default.gui_bg_img ..
+       default.gui_slots ..
+       "list[current_name;main;0,0.3;8,4;]" ..
+       "list[current_player;main;0,4.85;8,1;]" ..
+       "list[current_player;main;0,6.08;8,3;8]" ..
+       "listring[current_name;main]" ..
+       "listring[current_player;main]" ..
        default.get_hotbar_bg(0,4.85)
 
-local share_bones_time = tonumber(minetest.setting_get("share_bones_time") or 1200)
-local share_bones_time_early = tonumber(minetest.setting_get("share_bones_time_early") or (share_bones_time/4))
+local share_bones_time = tonumber(minetest.setting_get("share_bones_time")) or 1200
+local share_bones_time_early = tonumber(minetest.setting_get("share_bones_time_early")) or share_bones_time / 4
 
 minetest.register_node("bones:bones", {
        description = "Bones",