From 1c74b0f69bab3d0296e290faa1f2ebca26470c41 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Fri, 2 Dec 2016 19:31:37 +0000 Subject: [PATCH] Do not detach wield entity on rotation change --- init.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/init.lua b/init.lua index 8b50776..4460f29 100644 --- a/init.lua +++ b/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