Unnecessary use of mcl_util.get_node

This commit is contained in:
kno10 2024-10-25 21:03:04 +02:00
parent 7a8b632057
commit e94b718c95
1 changed files with 2 additions and 2 deletions

View File

@ -1244,7 +1244,7 @@ local function retrieve_my_jobsite (self)
mcl_log("find_jobsite. Invalid params. Should not happen") mcl_log("find_jobsite. Invalid params. Should not happen")
return return
end end
local n = mcl_vars.get_node(self._jobsite) local n = minetest.get_node(self._jobsite)
local m = minetest.get_meta(self._jobsite) local m = minetest.get_meta(self._jobsite)
if m:get_string("villager") == self._id then if m:get_string("villager") == self._id then
--mcl_log("find_jobsite. is my job.") --mcl_log("find_jobsite. is my job.")
@ -1411,7 +1411,7 @@ local function validate_bed(self)
if not self or not self._bed then if not self or not self._bed then
return false return false
end end
local n = mcl_vars.get_node(self._bed) local n = minetest.get_node(self._bed)
if not n then if not n then
self._bed = nil self._bed = nil
return false return false