mirror of
https://github.com/minetest-mods/throwing.git
synced 2024-11-15 23:20:22 +01:00
check drawtype="airlike" instead of just "air"
This commit is contained in:
parent
042fe054e6
commit
7104780868
2
init.lua
2
init.lua
|
@ -165,7 +165,7 @@ local function arrow_step(self, dtime)
|
|||
self.object:remove()
|
||||
logging("reached ignore. Removing.")
|
||||
return
|
||||
elseif node.name ~= "air" then
|
||||
elseif (minetest.registered_items[node.name] or {}).drawtype ~= "airlike" then
|
||||
if self.target ~= throwing.target_object then -- throwing.target_both, nil, throwing.target_node, or any invalid value
|
||||
if hit(pos, node, nil) ~= false then
|
||||
self.object:remove()
|
||||
|
|
Loading…
Reference in New Issue
Block a user