mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed Creative players spawning drops
This commit is contained in:
parent
3ba56c3e81
commit
2c3ab413f5
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue