ItemFrame: address crashdump 2113950

thanks Mojang for designing this lovely system where so much undefined behaviour is able to take place :(
This commit is contained in:
Dylan K. Taylor 2019-01-26 16:58:25 +00:00
parent c83b7d9b69
commit 48c8c2a8c3

View File

@ -65,7 +65,7 @@ class ItemFrame extends Flowable{
2 => Vector3::SIDE_NORTH,
3 => Vector3::SIDE_SOUTH
];
if(!$this->getSide($sides[$this->meta])->isSolid()){
if(isset($sides[$this->meta]) and !$this->getSide($sides[$this->meta])->isSolid()){
$this->level->useBreakOn($this);
}
}