Skip to content

Commit

Permalink
Fix for all
Browse files Browse the repository at this point in the history
  • Loading branch information
Emojigit committed Jun 4, 2024
1 parent b557ed9 commit 3f70823
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
16 changes: 6 additions & 10 deletions technic/machines/other/coal_alloy_furnace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ formspec = formspec..
"listring[context;fuel]"..
"listring[current_player;main]"

local on_metadata_inventory_move = technic.machine_on_inventory_move("technic:coal_alloy_furnace")
local on_metadata_inventory_put = technic.machine_on_inventory_put("technic:coal_alloy_furnace")
local on_metadata_inventory_take = technic.machine_on_inventory_take("technic:coal_alloy_furnace")

minetest.register_node("technic:coal_alloy_furnace", {
description = machine_name,
tiles = {"technic_coal_alloy_furnace_top.png", "technic_coal_alloy_furnace_bottom.png",
Expand All @@ -76,9 +72,9 @@ minetest.register_node("technic:coal_alloy_furnace", {
allow_metadata_inventory_put = technic.machine_inventory_put,
allow_metadata_inventory_take = technic.machine_inventory_take,
allow_metadata_inventory_move = technic.machine_inventory_move,
on_metadata_inventory_move = on_metadata_inventory_move,
on_metadata_inventory_put = on_metadata_inventory_put,
on_metadata_inventory_take = on_metadata_inventory_take,
on_metadata_inventory_move = technic.machine_on_inventory_move,
on_metadata_inventory_put = technic.machine_on_inventory_put,
on_metadata_inventory_take = technic.machine_on_inventory_take,
})

minetest.register_node("technic:coal_alloy_furnace_active", {
Expand All @@ -99,9 +95,9 @@ minetest.register_node("technic:coal_alloy_furnace_active", {
allow_metadata_inventory_put = technic.machine_inventory_put,
allow_metadata_inventory_take = technic.machine_inventory_take,
allow_metadata_inventory_move = technic.machine_inventory_move,
on_metadata_inventory_move = on_metadata_inventory_move,
on_metadata_inventory_put = on_metadata_inventory_put,
on_metadata_inventory_take = on_metadata_inventory_take,
on_metadata_inventory_move = technic.machine_on_inventory_move,
on_metadata_inventory_put = technic.machine_on_inventory_put,
on_metadata_inventory_take = technic.machine_on_inventory_take,
})

minetest.register_abm({
Expand Down
9 changes: 6 additions & 3 deletions technic/machines/other/constructor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ local function make_constructor(mark, length)
allow_metadata_inventory_put = allow_inventory_put,
allow_metadata_inventory_take = technic.machine_inventory_take,
allow_metadata_inventory_move = technic.machine_inventory_move,
on_metadata_inventory_move = technic.machine_on_inventory_move("technic:constructor_mk"..mark),
on_metadata_inventory_put = technic.machine_on_inventory_put("technic:constructor_mk"..mark),
on_metadata_inventory_take = technic.machine_on_inventory_take("technic:constructor_mk"..mark),
on_metadata_inventory_move = technic.machine_on_inventory_move,
on_metadata_inventory_put = technic.machine_on_inventory_put,
on_metadata_inventory_take = technic.machine_on_inventory_take,
on_rotate = function(pos, node, user, mode, new_param2)
if mode ~= 1 then
return false
Expand All @@ -234,6 +234,9 @@ local function make_constructor(mark, length)
allow_metadata_inventory_put = allow_inventory_put,
allow_metadata_inventory_take = technic.machine_inventory_take,
allow_metadata_inventory_move = technic.machine_inventory_move,
on_metadata_inventory_move = technic.machine_on_inventory_move,
on_metadata_inventory_put = technic.machine_on_inventory_put,
on_metadata_inventory_take = technic.machine_on_inventory_take,
on_rotate = false
})
end
Expand Down
6 changes: 3 additions & 3 deletions technic/machines/other/injector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ minetest.register_node("technic:injector", {
allow_metadata_inventory_put = technic.machine_inventory_put,
allow_metadata_inventory_take = technic.machine_inventory_take,
allow_metadata_inventory_move = technic.machine_inventory_move,
on_metadata_inventory_move = technic.machine_on_inventory_move("technic:injector"),
on_metadata_inventory_put = technic.machine_on_inventory_put("technic:injector"),
on_metadata_inventory_take = technic.machine_on_inventory_take("technic:injector"),
on_metadata_inventory_move = technic.machine_on_inventory_move,
on_metadata_inventory_put = technic.machine_on_inventory_put,
on_metadata_inventory_take = technic.machine_on_inventory_take,
after_place_node = pipeworks.after_place,
after_dig_node = pipeworks.after_dig
})
Expand Down

0 comments on commit 3f70823

Please sign in to comment.