mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
Block: don't be stupid in getSide()
This commit is contained in:
parent
b021cc2138
commit
2bd2e1125c
@ -595,7 +595,7 @@ class Block extends Position implements BlockLegacyIds{
|
||||
return $this->getWorld()->getBlock(Vector3::getSide($side, $step));
|
||||
}
|
||||
|
||||
return BlockFactory::get(BlockLegacyIds::AIR, 0, Position::fromObject(Vector3::getSide($side, $step)));
|
||||
throw new \InvalidStateException("Block does not have a valid world");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user