mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
disabled dropping in creative, crash reports are now saved if save-console-data=off
This commit is contained in:
parent
cb125f5aa2
commit
e85fbd6067
2 changed files with 10 additions and 0 deletions
|
|
@ -2280,6 +2280,12 @@ class Player{
|
|||
if($this->spawned === false or $this->blocked === true){
|
||||
break;
|
||||
}
|
||||
|
||||
if($this->gamemode & 0x01 == 1){
|
||||
ConsoleAPI::warn("{$this->iusername} tried dropping item while in creative!");
|
||||
return;
|
||||
}
|
||||
|
||||
$packet->eid = $this->eid;
|
||||
$prevItem = $packet->item;
|
||||
$packet->item = $this->getSlot($this->slot);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue