moved identetion of debug_head variable

This commit is contained in:
Your Name 2022-08-09 12:36:22 -05:00
parent 384e5ece67
commit 3a77a97e2d
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@ local vector = vector
local degrees = function(yaw)
return yaw*180.0/math.pi
end
local debug_head = minetest.settings:get_bool("mcl_debug_head_code", false)
local debug_head = minetest.settings:get_bool("mcl_debug_head_code", false)
mobs.do_head_logic = function(self, dtime, player)
if not self.has_head == true then return end
local player = player or minetest.get_player_by_name("singleplayer")