Skip to content

Commit

Permalink
Remove useless error and allow overide block
Browse files Browse the repository at this point in the history
  • Loading branch information
theohdg2 committed Oct 7, 2023
1 parent ed40887 commit d7ba337
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/block/RuntimeBlockStateRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ public function __construct(){
public function register(Block $block) : void{
$typeId = $block->getTypeId();

if(isset($this->typeIndex[$typeId])){
throw new \InvalidArgumentException("Block ID $typeId is already used by another block");
}
// if(isset($this->typeIndex[$typeId])){
// throw new \InvalidArgumentException("Block ID $typeId is already used by another block");
// }

$this->typeIndex[$typeId] = clone $block;

Expand Down
2 changes: 1 addition & 1 deletion src/world/format/io/leveldb/LevelDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ private static function deserialize3dBiomes(BinaryStream $stream, int $chunkVers
}
if(!$stream->feof()){
//maybe bad output produced by a third-party conversion tool like Chunker
$logger->error("Unexpected trailing data after 3D biomes data");
//$logger->error("Unexpected trailing data after 3D biomes data");
}

return $result;
Expand Down

0 comments on commit d7ba337

Please sign in to comment.