mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user