diff --git a/pumpkin-world/src/block/block_registry.rs b/pumpkin-world/src/block/block_registry.rs index 0abdd37fb..e5df4d15a 100644 --- a/pumpkin-world/src/block/block_registry.rs +++ b/pumpkin-world/src/block/block_registry.rs @@ -21,7 +21,7 @@ impl BlockId { ) -> Result { let mut block_states = BLOCKS .get(block_id) - .ok_or(WorldError::BlockStateIdNotFound)? + .ok_or(WorldError::BlockIdentifierNotFound)? .states .iter(); diff --git a/pumpkin-world/src/level.rs b/pumpkin-world/src/level.rs index 210ed47e1..5bfb24466 100644 --- a/pumpkin-world/src/level.rs +++ b/pumpkin-world/src/level.rs @@ -34,6 +34,8 @@ pub enum WorldError { Compression(CompressionError), #[error("Error deserializing chunk: {0}")] ErrorDeserializingChunk(String), + #[error("The requested block identifier does not exist")] + BlockIdentifierNotFound, #[error("The requested block state id does not exist")] BlockStateIdNotFound, #[error("The block is not inside of the chunk")]