diff options
author | Paramat <paramat@users.noreply.github.com> | 2017-09-12 23:01:50 +0100 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-09-13 00:01:50 +0200 |
commit | 604fe2083d70fea92b6c53c9a9d1c1ffdcb36610 (patch) | |
tree | 1cbb8959fd003f303c3922c7405593a4cc6d40a6 /builtin/game | |
parent | 5e141ac920bb4866a377904a7dec608a7e119218 (diff) | |
download | minetest-604fe2083d70fea92b6c53c9a9d1c1ffdcb36610.tar.gz minetest-604fe2083d70fea92b6c53c9a9d1c1ffdcb36610.tar.bz2 minetest-604fe2083d70fea92b6c53c9a9d1c1ffdcb36610.zip |
Item drop: Tune to land exactly 2 nodes away with level view (#6410)
Diffstat (limited to 'builtin/game')
-rw-r--r-- | builtin/game/item.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/game/item.lua b/builtin/game/item.lua index 2c7200524..03eee3a61 100644 --- a/builtin/game/item.lua +++ b/builtin/game/item.lua @@ -426,9 +426,9 @@ function core.item_drop(itemstack, dropper, pos) local item = itemstack:take_item(cnt) local obj = core.add_item(p, item) if obj then - dir.x = dir.x * 2 - dir.y = dir.y * 2 + 2 - dir.z = dir.z * 2 + dir.x = dir.x * 2.9 + dir.y = dir.y * 2.9 + 2 + dir.z = dir.z * 2.9 obj:set_velocity(dir) obj:get_luaentity().dropped_by = dropper:get_player_name() return itemstack |