constantly changing "standards" in minetest game code - tweak to prevent crash when activating door with keypad
battery bottom texture fix
This commit is contained in:
parent
e061c6b6ca
commit
bc9ea4c35c
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user