diff options
| author | ShadowNinja <noreply@gmail.com> | 2013-09-28 19:24:43 -0400 | 
|---|---|---|
| committer | ShadowNinja <noreply@gmail.com> | 2013-09-28 19:24:43 -0400 | 
| commit | dcb7f2ec2b4e3aa310eb1dcd81488003818f7eb7 (patch) | |
| tree | 10ec19ea5363b6a727f700322ed6dce034b3d62a | |
| parent | 88a740c8405001a023c3232dba115c2df826e5fd (diff) | |
Fix offset of buttons
| -rw-r--r-- | internal.lua | 4 | 
1 files changed, 1 insertions, 3 deletions
diff --git a/internal.lua b/internal.lua index 3c01a35..6d22530 100644 --- a/internal.lua +++ b/internal.lua @@ -22,15 +22,13 @@ function unified_inventory.get_formspec(player, page)  	end  	-- Main buttons -	local i = 0  	for i, def in pairs(unified_inventory.buttons) do  		if def.type == "image" then  			formspec = formspec.."image_button[" -					..(0.65 * i)..",9;0.8,0.8;" +					..(0.65 * (i - 1))..",9;0.8,0.8;"  					..minetest.formspec_escape(def.image)..";"  					..minetest.formspec_escape(def.name)..";]"  		end -		i = i + 1  	end  	-- Controls to flip items pages  | 
