disabled dropping in creative, crash reports are now saved if save-console-data=off

This commit is contained in:
GameHerobrine 2024-11-26 20:28:04 +03:00
parent cb125f5aa2
commit e85fbd6067
2 changed files with 10 additions and 0 deletions

View file

@ -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);