From 9ca35070c0253643fb4580c0fe81978d3ddafc04 Mon Sep 17 00:00:00 2001 From: echoes91 Date: Thu, 9 Apr 2015 10:42:31 +0200 Subject: [PATCH] 1.1.3 --- functions.lua | 8 +++----- textures/throwing_arrow_torch.png | Bin 204 -> 199 bytes textures/throwing_arrow_torch_2.png | Bin 199 -> 199 bytes textures/throwing_arrow_torch_back.png | Bin 202 -> 202 bytes 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/functions.lua b/functions.lua index 5adba74..568ad6e 100644 --- a/functions.lua +++ b/functions.lua @@ -31,11 +31,9 @@ function throwing_shoot_arrow (itemstack, player, stiffness, is_cross) else minetest.sound_play("throwing_bow_sound", {pos=playerpos}) end - if obj:get_luaentity().player == "" then - obj:get_luaentity().player = player - end - obj:get_luaentity().stack = player:get_inventory():get_stack("main", player:get_wield_index()-1) + obj:get_luaentity().player = player obj:get_luaentity().inventory = player:get_inventory() + obj:get_luaentity().stack = player:get_inventory():get_stack("main", player:get_wield_index()-1) return true end @@ -67,7 +65,7 @@ function throwing_reload (itemstack, player, pos, is_cross, loaded) if not minetest.setting_getbool("creative_mode") then player:get_inventory():remove_item("main", arrow[1]) end - meta = arrow[2] + local meta = arrow[2] player:set_wielded_item({name=loaded, wear=wear, metadata=meta}) end end diff --git a/textures/throwing_arrow_torch.png b/textures/throwing_arrow_torch.png index cd3bf0bd6e5328ea5fd32c1870bb0f65eca17512..0126df17767bde9b8144c097b854e466ff573af5 100644 GIT binary patch delta 130 zcmX@Zc${&9mg#>6AY8C_`D6wL2F?PH$YKTtZeb8+WSBKa0w~B{;_2(kexHStLsQ`z zKXW%wC}d*1nv?PE>5YZL%*x!FvnDpKU$1|--kxK2=CiBzJ;v+*C8{Xv6nIY(R@>4! eH_$Y?>|Y=;6T$8)k&s@ lW1OZMER1{8!}N-oL28ros$ZWkssIgT@O1TaS?83{1OQF<>&kwgSzd@+EaQpN z@rlvKHvb*jEc~vg{q(=AaV(2Nho^((|4Ko%BS-lZKRPnA1+t~6Sbcri8N@Jor?Fyg SS7HXx7zR&QKbLh*2~7YzASICi