--- a/net/minecraft/world/entity/SpawnPlacements.java
+++ b/net/minecraft/world/entity/SpawnPlacements.java
@@ -73,7 +73,7 @@
         EntityType<T> p_217075_, ServerLevelAccessor p_217076_, MobSpawnType p_217077_, BlockPos p_217078_, RandomSource p_217079_
     ) {
         SpawnPlacements.Data spawnplacements$data = DATA_BY_TYPE.get(p_217075_);
-        return spawnplacements$data == null || spawnplacements$data.predicate.test(p_217075_, p_217076_, p_217077_, p_217078_, p_217079_);
+        return spawnplacements$data == null || ((SpawnPredicate<T>)spawnplacements$data.predicate).test(p_217075_, p_217076_, p_217077_, p_217078_, p_217079_);
     }
 
     static {
