mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Merge e9e0cfcfd3
into 2d36d32da8
This commit is contained in:
commit
b07c204e64
1 changed files with 5 additions and 0 deletions
|
@ -373,6 +373,11 @@ function core.item_drop(itemstack, dropper, pos)
|
||||||
dir.z = dir.z * 2.9
|
dir.z = dir.z * 2.9
|
||||||
obj:set_velocity(dir)
|
obj:set_velocity(dir)
|
||||||
obj:get_luaentity().dropped_by = dropper:get_player_name()
|
obj:get_luaentity().dropped_by = dropper:get_player_name()
|
||||||
|
|
||||||
|
core.log("action", string.format("%s dropped %s %i at %s",
|
||||||
|
dropper_is_player and dropper:get_player_name() or "A mod",
|
||||||
|
item:get_name(), item:get_count(),
|
||||||
|
core.pos_to_string(p, 1)))
|
||||||
end
|
end
|
||||||
return itemstack, obj
|
return itemstack, obj
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue