mirror of
https://github.com/minetest-mods/throwing.git
synced 2025-01-10 10:10:25 +01:00
Bugfix: arrow throwed on a player caused a crash
This commit is contained in:
parent
98d5fc9449
commit
6d84b5d63a
2
init.lua
2
init.lua
@ -63,7 +63,7 @@ local function arrow_step(self, dtime)
|
|||||||
if obj:get_luaentity() then
|
if obj:get_luaentity() then
|
||||||
logging("collided with luaentity "..obj:get_luaentity().name.." at ("..pos.x..","..pos.y..","..pos.z..")")
|
logging("collided with luaentity "..obj:get_luaentity().name.." at ("..pos.x..","..pos.y..","..pos.z..")")
|
||||||
elseif obj:is_player() then
|
elseif obj:is_player() then
|
||||||
logging("collided with player "..obj:get_playername().." at ("..pos.x..","..pos.y..","..pos.z..")")
|
logging("collided with player "..obj:get_player_name().." at ("..pos.x..","..pos.y..","..pos.z..")")
|
||||||
else
|
else
|
||||||
logging("collided with object at ("..pos.x..","..pos.y..","..pos.z..")")
|
logging("collided with object at ("..pos.x..","..pos.y..","..pos.z..")")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user