From cbc8af5d2d5498bd2d6a7db74c19685ba56a7d9f Mon Sep 17 00:00:00 2001 From: "Eshan I." <2027eiyer@tjhsst.edu> Date: Thu, 30 Jul 2026 08:22:40 -0400 Subject: [PATCH] fix(block): bleach fire coral blocks when they dry out (#2571) get_dead_coral_block_type mapped FIRE_CORAL_BLOCK to itself rather than to DEAD_FIRE_CORAL_BLOCK, so a fire coral block left out of water stayed alive forever while the other four colours bleached normally. The two sibling tables for fans and plants both map it correctly. The same table feeds BlockMetadata::ids, so this also stops the block being registered twice and registers DEAD_FIRE_CORAL_BLOCK, which was missing from the list. --- pumpkin/src/block/blocks/coral/coral_block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pumpkin/src/block/blocks/coral/coral_block.rs b/pumpkin/src/block/blocks/coral/coral_block.rs index ab34a8b8a..35a9bb70a 100644 --- a/pumpkin/src/block/blocks/coral/coral_block.rs +++ b/pumpkin/src/block/blocks/coral/coral_block.rs @@ -47,7 +47,7 @@ const fn get_dead_coral_block_type(id: BlockId) -> Option<&'static Block> { match id { BlockId::BRAIN_CORAL_BLOCK => Some(&Block::DEAD_BRAIN_CORAL_BLOCK), BlockId::BUBBLE_CORAL_BLOCK => Some(&Block::DEAD_BUBBLE_CORAL_BLOCK), - BlockId::FIRE_CORAL_BLOCK => Some(&Block::FIRE_CORAL_BLOCK), + BlockId::FIRE_CORAL_BLOCK => Some(&Block::DEAD_FIRE_CORAL_BLOCK), BlockId::HORN_CORAL_BLOCK => Some(&Block::DEAD_HORN_CORAL_BLOCK), BlockId::TUBE_CORAL_BLOCK => Some(&Block::DEAD_TUBE_CORAL_BLOCK), _ => None,