chraft/c-raft — Issue #125: Blocks: Implement a fallback default BlockClass for unknown block types
Author: spazzarama
Created: 2011-10-26 21:56:48+00:00
State: open
Labels: Bug, High Priority

It is possible in the Drowning/Suffocation check that the block type is invalid (from memory i think 255).

I have seen this once, and it has been reported on IRC by another a couple times.

To get around this rare state, a default block class could be implemented that is returned for any unknown block type. This will prevent the null reference checks.

The block class should return false for the various IsLiquid checks etc... and perform no actions.