Drops now have starting speed, correct entity motion at spawn

This commit is contained in:
Shoghi Cervantes 2013-05-30 18:55:50 +02:00
parent 09efcec605
commit fc02572065
4 changed files with 13 additions and 11 deletions

View file

@ -283,7 +283,7 @@ class BlockAPI{
if(($player->gamemode & 0x01) === 0x00 and count($drops) > 0){
foreach($drops as $drop){
$this->server->api->entity->drop($target, BlockAPI::getItem($drop[0] & 0xFFFF, $drop[1] & 0xFFFF, $drop[2] & 0xFF));
$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] & 0xFF));
}
}
return false;