mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Do not drop blocks in creative mode
This commit is contained in:
parent
067147f750
commit
529bb8a262
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class BlockAPI{
|
|||
}
|
||||
break;
|
||||
}
|
||||
if($drop !== false and $drop[0] !== 0 and $drop[2] > 0){
|
||||
if($drop !== false and $drop[0] !== 0 and $drop[2] > 0 and $this->server->gamemode !== 1){
|
||||
$this->drop($data["x"], $data["y"], $data["z"], $drop[0], $drop[1] & 0x0F, $drop[2] & 0xFF);
|
||||
}
|
||||
$this->server->trigger("player.block.break", $data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue