]> git.lizzy.rs Git - xdecor.git/commitdiff
Add listring to move honey to inventory
authorHector Kio <hector.kio223@gmail.com>
Sun, 16 Sep 2018 17:40:55 +0000 (13:40 -0400)
committerJean-Patrick Guerrero <kilbith@users.noreply.github.com>
Mon, 17 Sep 2018 00:30:47 +0000 (02:30 +0200)
Allows using shift+click to transfer honey to player inventory.

src/hive.lua

index a389dd2b7c4c354d8c1ddbec459aced84969f218..eb52901170c4de2b8877461ca85c7868ebaeea0a 100644 (file)
@@ -10,7 +10,9 @@ function hive.construct(pos)
                        image[6,0;1,1;hive_bee.png]
                        image[5,0;1,1;hive_layout.png]
                        list[context;honey;5,0;1,1;]
-                       list[current_player;main;0,1.35;8,4;] ]]
+                       list[current_player;main;0,1.35;8,4;]
+                       listring[current_player;main]
+                       listring[context;honey] ]]
                        ..xbg..default.get_hotbar_bg(0,1.35)
 
        meta:set_string("formspec", formspec)