From 43321083f78dac0a1d7abb72f728181f4087a0ae Mon Sep 17 00:00:00 2001
From: teknomunk <teknomunk@protonmail.com>
Date: Thu, 9 Jan 2025 06:27:47 -0600
Subject: [PATCH] Remove redundant room check

---
 mods/ENTITIES/mcl_mobs/spawning.lua | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/mods/ENTITIES/mcl_mobs/spawning.lua b/mods/ENTITIES/mcl_mobs/spawning.lua
index 654a2e498..ca1e97668 100644
--- a/mods/ENTITIES/mcl_mobs/spawning.lua
+++ b/mods/ENTITIES/mcl_mobs/spawning.lua
@@ -578,10 +578,6 @@ local function spawn_check(pos, state, node, spawn_def)
 	-- Make sure the mob can spawn at this location
 	if pos.y < spawn_def.min_height or pos.y > spawn_def.max_height then return false end
 
-	-- Spawns require enough room for the mob
-	local mob_def = minetest.registered_entities[spawn_def.name]
-	if not has_room(mob_def, pos) then return false end
-
 	-- Don't spawn if the spawn definition has a custom check and that fails
 	if spawn_def.check_position and not spawn_def.check_position(pos) then return false end