From d8d39ffd52a1c36315109f98cac53ee85a482b26 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Mon, 17 Jun 2024 20:27:55 -0500 Subject: [PATCH] Add spawnbox parameter that overrides collision box for spawn volume checks --- mods/ENTITIES/mcl_mobs/spawning.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/spawning.lua b/mods/ENTITIES/mcl_mobs/spawning.lua index 1fb07247c..aed87631c 100644 --- a/mods/ENTITIES/mcl_mobs/spawning.lua +++ b/mods/ENTITIES/mcl_mobs/spawning.lua @@ -531,7 +531,7 @@ local function get_water_spawn(p) end local function has_room(self,pos) - local cb = self.collisionbox + local cb = self.spawnbox or self.collisionbox local nodes = {} if self.fly_in then local t = type(self.fly_in)