mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
BlockDataSerializer: fix wrong exception type being thrown
This commit is contained in:
parent
bdac98beaf
commit
8221475ce2
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user