Read 1.21.1 dimension contract

- The world check derives the End dragon fight flag from the dimension effects when the runtime dimension type has no has_ender_dragon_fight field
This commit is contained in:
Brian Neumann-Fopiano
2026-10-16 11:21:01 -04:00
parent 4daae925c6
commit 8917bdc974
@@ -86,7 +86,8 @@ final class WorldCheckDimensionContract {
(float) json.getDouble("ambient_light"),
json.getBoolean("has_skylight"),
json.getBoolean("has_ceiling"),
json.getBoolean("has_ender_dragon_fight"),
json.has("has_ender_dragon_fight") ? json.getBoolean("has_ender_dragon_fight")
: "minecraft:the_end".equals(json.optString("effects")),
json.getInt("monster_spawn_block_light_limit"));
}