1
0
mirror of https://github.com/HybridDog/connected_chests.git synced 2025-07-16 15:10:23 +02:00

7 Commits

Author SHA1 Message Date
462fe3bbe3 Merge remote-tracking branch 'upstream/master' 2024-09-15 08:46:38 +02:00
044a91fcd5 Do not crash with tenplus1's hopper mod
There are multiple hopper mods and not all of them support the set_extra_container_info function,
so the mod crashes now if it is used together with an incompatible hopper mod.

To prevent the crash, execute the code for hopper compatibility if hopper and hopper.set_extra_container_info exist and not if a mod named hopper is installed.
2024-08-25 09:48:03 +02:00
e13bb490d1 Merge remote-tracking branch 'upstream/master' 2023-11-22 23:27:18 +01:00
00eac777d7 Merge remote-tracking branch 'upstream/master' 2021-03-12 12:16:00 +01:00
1ec3601f7f Merge remote-tracking branch 'upstream/master' 2020-10-18 12:24:49 +02:00
53d2009680 Merge branch 'master' into nalc-1.2 2019-05-06 01:11:32 +02:00
7f5b39c673 Corrige assignation de variable globale vers locale 2019-02-03 15:07:22 +01:00

View File

@ -647,7 +647,7 @@ minetest.register_alias("connected_chests:chest_locked_left",
minetest.register_alias("connected_chests:chest_locked_right",
"default:chest_locked_connected_right")
if minetest.get_modpath("hopper") then
if minetest.global_exists("hopper") and hopper.set_extra_container_info then
local function get_inventory(chest_right_pos)
local node_right = minetest.get_node(chest_right_pos)
if node_right.param2 > 3 then