mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +00:00
Remove random dead TODOs
This commit is contained in:
parent
874fdf5adb
commit
6703f46a08
@ -99,7 +99,6 @@ class RuntimeBlockStateRegistry{
|
|||||||
try{
|
try{
|
||||||
$v->decodeTypeAndStateData($stateData);
|
$v->decodeTypeAndStateData($stateData);
|
||||||
if($v->computeTypeAndStateData() !== $stateData){
|
if($v->computeTypeAndStateData() !== $stateData){
|
||||||
//TODO: this should probably be a hard error
|
|
||||||
throw new \LogicException(get_class($block) . "::decodeStateData() accepts invalid state data (returned " . $v->computeTypeAndStateData() . " for input $stateData)");
|
throw new \LogicException(get_class($block) . "::decodeStateData() accepts invalid state data (returned " . $v->computeTypeAndStateData() . " for input $stateData)");
|
||||||
}
|
}
|
||||||
}catch(InvalidSerializedRuntimeDataException){ //invalid property combination, leave it
|
}catch(InvalidSerializedRuntimeDataException){ //invalid property combination, leave it
|
||||||
|
@ -627,7 +627,6 @@ class LevelDB extends BaseWorldProvider implements WritableWorldProvider{
|
|||||||
$subChunks = $this->deserializeLegacyTerrainData($index, $chunkVersion);
|
$subChunks = $this->deserializeLegacyTerrainData($index, $chunkVersion);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
//TODO: set chunks read-only so the version on disk doesn't get overwritten
|
|
||||||
throw new CorruptedChunkException("don't know how to decode chunk format version $chunkVersion");
|
throw new CorruptedChunkException("don't know how to decode chunk format version $chunkVersion");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -664,7 +663,7 @@ class LevelDB extends BaseWorldProvider implements WritableWorldProvider{
|
|||||||
//TODO: tile ticks, biome states (?)
|
//TODO: tile ticks, biome states (?)
|
||||||
|
|
||||||
$chunk = new Chunk(
|
$chunk = new Chunk(
|
||||||
$subChunks, //TODO: maybe missing biomes should be an error?
|
$subChunks,
|
||||||
$terrainPopulated
|
$terrainPopulated
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user