Fixed entities not being pushed out of blocks

This commit is contained in:
Shoghi Cervantes
2014-10-20 12:37:17 +02:00
parent 481e2b08ee
commit fec387d2ec
5 changed files with 19 additions and 20 deletions

View File

@ -1105,7 +1105,7 @@ class Level implements ChunkManager, Metadatable{
}
}
if(!($player instanceof Player) or ($player->getGamemode() & 0x01) === 0){
if(!($player instanceof Player) or $player->isSurvival() === 0){
foreach($drops as $drop){
if($drop[2] > 0){
$this->dropItem($vector->add(0.5, 0.5, 0.5), Item::get(...$drop));