mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 23:15:29 +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
|
3 => Facing::SOUTH
|
||||||
][$value] ?? null;
|
][$value] ?? null;
|
||||||
if($result === null){
|
if($result === null){
|
||||||
throw new \InvalidArgumentException("Invalid coral facing $value");
|
throw new InvalidBlockStateException("Invalid coral facing $value");
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user