From 4eadf806349e9acfc817db8cdcdc85bc879c1558 Mon Sep 17 00:00:00 2001
From: Paramat <paramat@users.noreply.github.com>
Date: Tue, 13 Aug 2019 21:57:32 +0100
Subject: [PATCH] Sfinv: Add and use a crafting arrow texture instead of using
 furnace arrow

---
 mods/sfinv/README.txt                        |   5 +++
 mods/sfinv/init.lua                          |   2 +-
 mods/sfinv/license.txt                       |  35 +++++++++++++++++++
 mods/sfinv/textures/sfinv_crafting_arrow.png | Bin 0 -> 469 bytes
 4 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 mods/sfinv/textures/sfinv_crafting_arrow.png

diff --git a/mods/sfinv/README.txt b/mods/sfinv/README.txt
index a7ac794f..a69e3c32 100644
--- a/mods/sfinv/README.txt
+++ b/mods/sfinv/README.txt
@@ -11,3 +11,8 @@ https://forum.minetest.net/viewtopic.php?t=19765
 Authors of source code
 ----------------------
 rubenwardy (MIT)
+
+Authors of media
+----------------
+paramat (CC BY-SA 3.0):
+  sfinv_crafting_arrow.png - derived from a texture by BlockMen (CC BY-SA 3.0)
diff --git a/mods/sfinv/init.lua b/mods/sfinv/init.lua
index 2d7172bf..056047f3 100644
--- a/mods/sfinv/init.lua
+++ b/mods/sfinv/init.lua
@@ -6,7 +6,7 @@ sfinv.register_page("sfinv:crafting", {
 		return sfinv.make_formspec(player, context, [[
 				list[current_player;craft;1.75,0.5;3,3;]
 				list[current_player;craftpreview;5.75,1.5;1,1;]
-				image[4.75,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]
+				image[4.75,1.5;1,1;sfinv_crafting_arrow.png]
 				listring[current_player;main]
 				listring[current_player;craft]
 			]], true)
diff --git a/mods/sfinv/license.txt b/mods/sfinv/license.txt
index e27dc85f..6676d74e 100644
--- a/mods/sfinv/license.txt
+++ b/mods/sfinv/license.txt
@@ -22,3 +22,38 @@ DEALINGS IN THE SOFTWARE.
 
 For more details:
 https://opensource.org/licenses/MIT
+
+
+License of media
+----------------
+
+Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
+Copyright (C) 2019 paramat
+
+You are free to:
+Share — copy and redistribute the material in any medium or format.
+Adapt — remix, transform, and build upon the material for any purpose, even commercially.
+The licensor cannot revoke these freedoms as long as you follow the license terms.
+
+Under the following terms:
+
+Attribution — You must give appropriate credit, provide a link to the license, and
+indicate if changes were made. You may do so in any reasonable manner, but not in any way
+that suggests the licensor endorses you or your use.
+
+ShareAlike — If you remix, transform, or build upon the material, you must distribute
+your contributions under the same license as the original.
+
+No additional restrictions — You may not apply legal terms or technological measures that
+legally restrict others from doing anything the license permits.
+
+Notices:
+
+You do not have to comply with the license for elements of the material in the public
+domain or where your use is permitted by an applicable exception or limitation.
+No warranties are given. The license may not give you all of the permissions necessary
+for your intended use. For example, other rights such as publicity, privacy, or moral
+rights may limit how you use the material.
+
+For more details:
+http://creativecommons.org/licenses/by-sa/3.0/
diff --git a/mods/sfinv/textures/sfinv_crafting_arrow.png b/mods/sfinv/textures/sfinv_crafting_arrow.png
new file mode 100644
index 0000000000000000000000000000000000000000..df1bbdb4be285ca651ec29982267e61da0cc639c
GIT binary patch
literal 469
zcmeAS@N?(olHy`uVBq!ia0vp^DIm<j1|$m}O$}jSV4UOW;uunK>+Rjsxy=p?Y!B@P
zQ)k#YDSmOb*K2WFFd;@PlV7onFVgKzPfO0v4NUb4a);CmjS*mXxxB63mrXkTum1YY
z+J4?I{D|SnDJiQ8S$3{-XPlX-v9~E9u!_xb(HFiZXF--WB@P}}0f{aJ0};mrjiv(u
zER72}n249KzvmUjCUN>ed5+ho(76AbZBNd6GBc(2`L?SMpM2hUktcp9TR-piDao$&
zokn{$o{V%B`L4L37HVDd{fns@)uuaJ1B92<9^ZL#R*G;-V`0@I4Gs=x0f}Sz?vckC
z%Iz*?macv0e|_^ghizFKtj$6VBzl(Ix96L2`s7WYLk03ohXq*L6ghZ+I@%NrcpMWX
znhqGSG$wM8CQ-$HFj3|2zl7!cLd#TbQ<sNNSnIRHU2Y~4xVtx>=c=@kj+`MMFuE8#
MUHx3vIVCg!0F!X3YybcN

literal 0
HcmV?d00001

-- 
GitLab