From e4db91d35c4b6f8dfec11b5153fc32096f7540dc Mon Sep 17 00:00:00 2001 From: ancientmarinerdev Date: Sun, 1 Jan 2023 03:19:45 +0000 Subject: [PATCH] Fix crash bug --- mods/ENTITIES/mobs_mc/villager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mobs_mc/villager.lua b/mods/ENTITIES/mobs_mc/villager.lua index 0cd3a6c52..bb23758c5 100644 --- a/mods/ENTITIES/mobs_mc/villager.lua +++ b/mods/ENTITIES/mobs_mc/villager.lua @@ -836,7 +836,7 @@ end local function take_bed (entity) if not entity then return end - if not self:ready_to_path() then return end + if not entity:ready_to_path() then return end local p = entity.object:get_pos()