1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00
This commit is contained in:
1F616EMO~nya 2025-06-26 23:01:17 +08:00 committed by GitHub
commit b07c204e64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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