From 0e10e8360d6fa5aa6cbb86870b6244e8818d7dc8 Mon Sep 17 00:00:00 2001 From: coil <51716565+coil0@users.noreply.github.com> Date: Sun, 15 Mar 2020 17:27:36 +0100 Subject: [PATCH] Fix crash when placing cable plates (#534) --- technic/tools/flashlight.lua | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/technic/tools/flashlight.lua b/technic/tools/flashlight.lua index 7b43d70..a4ac608 100644 --- a/technic/tools/flashlight.lua +++ b/technic/tools/flashlight.lua @@ -8,7 +8,7 @@ technic.register_power_tool("technic:flashlight", flashlight_max_charge) minetest.register_alias("technic:light_off", "air") - + minetest.register_tool("technic:flashlight", { description = S("Flashlight"), inventory_image = "technic_flashlight.png", @@ -55,7 +55,7 @@ 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 @@ 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] @@ -111,9 +111,9 @@ minetest.register_node("technic:light", { drawtype = "glasslike", - tile_images = {"technic_light.png"}, + tiles = {"technic_light.png"}, paramtype = "light", - groups = {not_in_creative_inventory=1}, + groups = {not_in_creative_inventory = 1}, drop = "", walkable = false, buildable_to = true, -- Gitblit v1.8.0