mirror of
https://github.com/stujones11/wield3d.git
synced 2024-12-27 00:07:28 +01:00
Do not detach wield entity on rotation change
This commit is contained in:
parent
81618d564d
commit
1c74b0f69b
1
init.lua
1
init.lua
@ -83,7 +83,6 @@ minetest.register_globalstep(function(dtime)
|
||||
if loc[1] ~= wield.location[1] or
|
||||
not vector.equals(loc[2], wield.location[2]) or
|
||||
not vector.equals(loc[3], wield.location[3]) then
|
||||
wield.object:set_detach()
|
||||
wield.object:set_attach(player, loc[1], loc[2], loc[3])
|
||||
wield.location = {loc[1], loc[2], loc[3]}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user