From 89ae743f524d4061247a4f9801addff0b3209420 Mon Sep 17 00:00:00 2001 From: Panquesito7 <51391473+Panquesito7@users.noreply.github.com> Date: Thu, 22 Aug 2019 21:42:24 -0500 Subject: [PATCH] Update flashlight.lua --- technic/tools/flashlight.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/technic/tools/flashlight.lua b/technic/tools/flashlight.lua index 30f2480..a4ac608 100644 --- a/technic/tools/flashlight.lua +++ b/technic/tools/flashlight.lua @@ -55,7 +55,7 @@ end minetest.register_on_joinplayer(function(player) local player_name = player:get_player_name() - local pos = player:getpos() + local pos = player:get_pos() local rounded_pos = vector.round(pos) rounded_pos.y = rounded_pos.y + 1 player_positions[player_name] = rounded_pos @@ -77,7 +77,7 @@ minetest.register_globalstep(function(dtime) for i, player in pairs(minetest.get_connected_players()) do local player_name = player:get_player_name() local flashlight_weared = check_for_flashlight(player) - local pos = player:getpos() + local pos = player:get_pos() local rounded_pos = vector.round(pos) rounded_pos.y = rounded_pos.y + 1 local old_pos = player_positions[player_name] @@ -113,7 +113,7 @@ minetest.register_node("technic:light", { drawtype = "glasslike", tiles = {"technic_light.png"}, paramtype = "light", - groups = {not_in_creative_inventory=1}, + groups = {not_in_creative_inventory = 1}, drop = "", walkable = false, buildable_to = true,