mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-25 06:34:35 +00:00
* fix(blocks): honor mob-spawn config on Waterstone/Lavastone BlockMultiLayer implements ICarvable, so its item tooltip shows "Mobs cannot Spawn on this Block" whenever canMobsSpawnOnTheChiselBlocks is disabled, but unlike BlockCarvable it never overrode canCreatureSpawn, so the setting was never actually enforced on Waterstone (and Lavastone, which happened to mask the bug via its high light level blocking hostile spawns). Fixes GTNewHorizons/GT-New-Horizons-Modpack#26703 * fix(blocks): honor mob-spawn config on carvable Sand Same root cause as Waterstone/Lavastone: BlockCarvableSand is a full opaque block (Material.sand) implementing ICarvable, so it shows the "Mobs cannot Spawn on this Block" tooltip whenever canMobsSpawnOnTheChiselBlocks is disabled, but never overrode canCreatureSpawn to actually enforce it. Verified against the decompiled Forge source in build/rfg: unlike the carvable Glass/Ice/PackedIce/Beacon blocks (which never reach canCreatureSpawn at all because they fail the earlier solid-top-surface check via a translucent material or renderAsNormalBlock=false), Sand uses an opaque material with no such override, so it passes that check and defaults canCreatureSpawn to true.