From 066cba0af797fce56b4c8d6d156dc4e62e478870 Mon Sep 17 00:00:00 2001 From: kno10 Date: Fri, 25 Oct 2024 21:03:04 +0200 Subject: [PATCH] Unnecessary use of mcl_util.get_node --- mods/ENTITIES/mobs_mc/villager.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/villager.lua b/mods/ENTITIES/mobs_mc/villager.lua index 19aeb5186..aff93f447 100644 --- a/mods/ENTITIES/mobs_mc/villager.lua +++ b/mods/ENTITIES/mobs_mc/villager.lua @@ -1247,7 +1247,7 @@ local function retrieve_my_jobsite (self) mcl_log("find_jobsite. Invalid params. Should not happen") return end - local n = mcl_vars.get_node(self._jobsite) + local n = minetest.get_node(self._jobsite) local m = minetest.get_meta(self._jobsite) if m:get_string("villager") == self._id then --mcl_log("find_jobsite. is my job.") @@ -1414,7 +1414,7 @@ local function validate_bed(self) if not self or not self._bed then return false end - local n = mcl_vars.get_node(self._bed) + local n = minetest.get_node(self._bed) if not n then self._bed = nil return false