From 0f6a51a03159a832b130ae0df82f33127fcd4ab2 Mon Sep 17 00:00:00 2001 From: Sumyjkl Date: Tue, 2 Aug 2022 18:39:15 +1000 Subject: [PATCH] remove unused file scope variables --- mods/PLAYER/mcl_playerplus/init.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mods/PLAYER/mcl_playerplus/init.lua b/mods/PLAYER/mcl_playerplus/init.lua index 3448d9fa1..7257290b9 100644 --- a/mods/PLAYER/mcl_playerplus/init.lua +++ b/mods/PLAYER/mcl_playerplus/init.lua @@ -2,8 +2,6 @@ mcl_playerplus = { elytra = {}, } -local player_velocity_old = {x=0, y=0, z=0} -local player_position_old = {x=0, y=0, z=0} local is_pressing_jump = false local get_connected_players = minetest.get_connected_players local dir_to_yaw = minetest.dir_to_yaw @@ -369,10 +367,6 @@ minetest.register_globalstep(function(dtime) set_bone_position_conditional(player,"Wield_Item", vector.new(-1.5,4.9,1.8), vector.new(135,0,90)) end - player_velocity_old = player:get_velocity() or player:get_player_velocity() - player_position_old = player:get_pos() - - -- controls right and left arms pitch when shooting a bow or blocking if mcl_shields.is_blocking(player) == 2 then set_bone_position_conditional(player, "Arm_Right_Pitch_Control", vector.new(-3, 5.785, 0), vector.new(20, -20, 0))