1
0
mirror of https://github.com/HybridDog/connected_chests.git synced 2024-12-28 06:00:17 +01:00

automatic update

This commit is contained in:
HybridDog 2015-04-16 20:42:17 +02:00
parent 2e0548ebc5
commit 36a49cc3be

View File

@ -148,10 +148,10 @@ minetest.register_node("connected_chests:chest_left", {
on_metadata_inventory_move = function(pos, _, _, _, _, _, player) on_metadata_inventory_move = function(pos, _, _, _, _, _, player)
log_access(pos, player, "in a big chest") log_access(pos, player, "in a big chest")
end, end,
on_metadata_inventory_put = function(pos, _, _, _, player) on_metadata_inventory_put = function(pos, _, _, _, player)
log_access(pos, player, "to a big chest") log_access(pos, player, "to a big chest")
end, end,
on_metadata_inventory_take = function(pos, _, _, _, player) on_metadata_inventory_take = function(pos, _, _, _, player)
log_access(pos, player, "from a big chest") log_access(pos, player, "from a big chest")
end, end,
}) })
@ -182,15 +182,15 @@ minetest.register_node("connected_chests:chest_locked_left", {
can_dig = default_chest_locked.can_dig, can_dig = default_chest_locked.can_dig,
after_dig_node = return_remove_next("connected_chests:chest_locked_right"), after_dig_node = return_remove_next("connected_chests:chest_locked_right"),
allow_metadata_inventory_move = default_chest_locked.allow_metadata_inventory_move, allow_metadata_inventory_move = default_chest_locked.allow_metadata_inventory_move,
allow_metadata_inventory_put = default_chest_locked.allow_metadata_inventory_put, allow_metadata_inventory_put = default_chest_locked.allow_metadata_inventory_put,
allow_metadata_inventory_take = default_chest_locked.allow_metadata_inventory_take, allow_metadata_inventory_take = default_chest_locked.allow_metadata_inventory_take,
on_metadata_inventory_move = function(pos, _, _, _, _, _, player) on_metadata_inventory_move = function(pos, _, _, _, _, _, player)
log_access(pos, player, "in a big locked chest") log_access(pos, player, "in a big locked chest")
end, end,
on_metadata_inventory_put = function(pos, _, _, _, player) on_metadata_inventory_put = function(pos, _, _, _, player)
log_access(pos, player, "to a big locked chest") log_access(pos, player, "to a big locked chest")
end, end,
on_metadata_inventory_take = function(pos, _, _, _, player) on_metadata_inventory_take = function(pos, _, _, _, player)
log_access(pos, player, "from a big locked chest") log_access(pos, player, "from a big locked chest")
end, end,
on_rightclick = function(pos, _, clicker) on_rightclick = function(pos, _, clicker)
@ -213,9 +213,7 @@ minetest.register_node("connected_chests:chest_right", {
paramtype2 = "facedir", paramtype2 = "facedir",
drop = "", drop = "",
pointable = false, pointable = false,
can_dig = function() diggable = false,
return false
end,
}) })
minetest.register_node("connected_chests:chest_locked_right", { minetest.register_node("connected_chests:chest_locked_right", {
@ -224,9 +222,7 @@ minetest.register_node("connected_chests:chest_locked_right", {
paramtype2 = "facedir", paramtype2 = "facedir",
drop = "", drop = "",
pointable = false, pointable = false,
can_dig = function() diggable = false,
return false
end,
}) })
for _,i in pairs({"chest", "chest_locked"}) do for _,i in pairs({"chest", "chest_locked"}) do
@ -257,7 +253,7 @@ for _,i in pairs({"chest", "chest_locked"}) do
end end
local time = math.floor(tonumber(os.clock()-load_time_start)*100+0.5)/100 local time = math.floor(tonumber(os.clock()-load_time_start)*100+0.5)/100
local msg = "[] loaded after ca. "..time local msg = "[connected_chests] loaded after ca. "..time
if time > 0.05 then if time > 0.05 then
print(msg) print(msg)
else else