Fixed Creative players spawning drops

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-19 23:44:10 +01:00
parent 3ba56c3e81
commit 2c3ab413f5

View File

@ -184,7 +184,7 @@ class BlockAPI{
}
if(count($drops) > 0){
if($player->gamemode !== CREATIVE and count($drops) > 0){
foreach($drops as $drop){
$this->drop($target, BlockAPI::getItem($drop[0] & 0xFFFF, $drop[1] & 0xFFFF, $drop[2] & 0xFF));
}