milan2018 #10

Merged
milan merged 2 commits from milan2018 into master 2020-04-25 19:31:59 +02:00
2 changed files with 3 additions and 3 deletions

View file

@ -257,7 +257,7 @@ end
-- receptor -- -- receptor --
replace_node({name = "basic_machines:keypad", to = "default:wood"}) replace_node({name = "basic_machines:keypad", to = "default:wood"})
replace_node({name = "clock_generator", to = "default:diamondblock"}) replace_node({name = "basic_machines:clockgen", to = "default:diamondblock"})
-- effector -- -- effector --
replace_node({name = "basic_machines:light_on", to = "mesecons_lightstone:lightstone_white_on"}) replace_node({name = "basic_machines:light_on", to = "mesecons_lightstone:lightstone_white_on"})

View file

@ -275,7 +275,7 @@ minetest.register_node("basic_machines:battery_0", {
insert_object = function(pos, node, stack, direction) insert_object = function(pos, node, stack, direction)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local inv = meta:get_inventory() local inv = meta:get_inventory()
return inv:add_item("upgrade", stack) return inv:add_item("fuel", stack)
end, end,
can_insert = function(pos, node, stack, direction) can_insert = function(pos, node, stack, direction)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
@ -283,7 +283,7 @@ minetest.register_node("basic_machines:battery_0", {
if meta:get_int("split_material_stacks") == 1 then if meta:get_int("split_material_stacks") == 1 then
stack = stack:peek_item(1) stack = stack:peek_item(1)
end end
return inv:room_for_item("upgrade", stack) return inv:room_for_item("fuel", stack)
end, end,
input_inventory = "fuel", input_inventory = "fuel",
connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1} connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1}