Improved Player->onGround checking

This commit is contained in:
Shoghi Cervantes
2014-10-20 12:52:00 +02:00
parent fec387d2ec
commit e3e97a4205
3 changed files with 6 additions and 7 deletions

View File

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