This commit is contained in:
GameHerobrine 2023-01-11 20:33:45 +03:00
parent 5c153ac5da
commit bc2bd5fd4f

View file

@ -406,7 +406,7 @@ class BlockAPI{
}
if(($player->gamemode & 0x01) === 0x00 and count($drops) > 0){
if(is_array($drops) && ($player->gamemode & 0x01) === 0x00 and count($drops) > 0){
foreach($drops as $drop){
$this->server->api->entity->drop(new Position($target->x + 0.5, $target->y, $target->z + 0.5, $target->level), BlockAPI::getItem($drop[0] & 0xFFFF, $drop[1] & 0xFFFF, $drop[2]));
}