BlockDataSerializer: fix wrong exception type being thrown

This commit is contained in:
Dylan K. Taylor 2021-08-02 19:20:19 +01:00
parent bdac98beaf
commit 8221475ce2
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -131,7 +131,7 @@ final class BlockDataSerializer{
3 => Facing::SOUTH
][$value] ?? null;
if($result === null){
throw new \InvalidArgumentException("Invalid coral facing $value");
throw new InvalidBlockStateException("Invalid coral facing $value");
}
return $result;
}