mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-05 10:00:26 +01:00
fix previously crash with pipeworks mod -> https://forum.minetest.net/viewtopic.php?f=11&t=2155&p=205434#p205101
This commit is contained in:
parent
874f854688
commit
89b978d543
|
@ -188,7 +188,7 @@ end
|
||||||
|
|
||||||
local mt_item_drop = minetest.item_drop
|
local mt_item_drop = minetest.item_drop
|
||||||
function minetest.item_drop(itemstack, dropper, pos)
|
function minetest.item_drop(itemstack, dropper, pos)
|
||||||
if dropper.is_player then
|
if dropper and dropper.is_player then
|
||||||
local v = dropper:get_look_dir()
|
local v = dropper:get_look_dir()
|
||||||
local p = {x=pos.x, y=pos.y+1.2, z=pos.z}
|
local p = {x=pos.x, y=pos.y+1.2, z=pos.z}
|
||||||
local cs = itemstack:get_count()
|
local cs = itemstack:get_count()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user