From bc9ea4c35cf78dced03ed5ab2d7e988caba7a825 Mon Sep 17 00:00:00 2001 From: rnd Date: Thu, 19 Jul 2018 17:24:56 +0200 Subject: [PATCH] constantly changing "standards" in minetest game code - tweak to prevent crash when activating door with keypad battery bottom texture fix --- mesecon_doors.lua | 2 +- technic_power.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mesecon_doors.lua b/mesecon_doors.lua index 1db08cb..d1f793a 100644 --- a/mesecon_doors.lua +++ b/mesecon_doors.lua @@ -19,7 +19,7 @@ local function door_signal_overwrite(name) return item end function clicker:get_player_name() return name end; -- define method get_player_name() returning owner name so that we can call on_rightclick function in door - function clicker:is_player() return false end; -- method needed for mods that check this: like denaid areas mod + function clicker:is_player() return true end; -- method needed for mods that check this: like denaid areas mod if door_on_rightclick then door_on_rightclick(pos, nil, clicker,ItemStack(""),{}) end -- safety if it doesnt exist --minetest.swap_node(pos, {name = "protector:trapdoor", param1 = node.param1, param2 = node.param2}) -- more direct approach?, need to set param2 then too end diff --git a/technic_power.lua b/technic_power.lua index 40e6d52..2a4b345 100644 --- a/technic_power.lua +++ b/technic_power.lua @@ -116,7 +116,7 @@ local machines_activate_furnace = minetest.registered_nodes["default:furnace"].o minetest.register_node("basic_machines:battery_0", { description = "battery - stores energy, generates energy from fuel, can power nearby machines, or accelerate/run furnace above it. Its upgradeable.", - tiles = {"basic_machine_outlet.png","basic_machine_side.png","basic_machine_battery_0.png"}, + tiles = {"basic_machine_outlet.png","basic_machine_battery.png","basic_machine_battery_0.png"}, groups = {cracky=3, mesecon_effector_on = 1}, sounds = default.node_sound_wood_defaults(), after_place_node = function(pos, placer)