Fix using facedir for shoot dir of items from droppers and dispensers

This commit is contained in:
wallabra 2022-02-09 03:43:15 -03:00
parent 7dbdd70784
commit 68fb7433ec
Signed by untrusted user: Gustavo6046
GPG Key ID: 5182FABAA5E139B3
1 changed files with 3 additions and 3 deletions

View File

@ -143,9 +143,9 @@ local dropperdef = {
local newv = minetest.facedir_to_dir(node.param2)
newv = {
x = newv.x * shoot_force,
y = newv.y * shoot_force,
z = newv.z * shoot_force
x = -newv.x * shoot_force,
y = -newv.y * shoot_force,
z = -newv.z * shoot_force
}
dropitemobj:set_velocity(newv)