mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Fixed Creative players spawning drops
This commit is contained in:
parent
3ba56c3e81
commit
2c3ab413f5
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user