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

View file

@ -746,7 +746,11 @@ class PocketMinecraftServer{
ob_end_clean();
$dump .= "\r\n```";
$name = "Error_Dump_" . date("D_M_j-H.i.s-T_Y");
global $dolog;
$old = $dolog;
$dolog = true;
logg($dump, $name, true, 0, true);
$dolog = $old;
console("[SEVERE] Please submit the \"{$name}.log\" file to the Bug Reporting page. Give as much info as you can.", true, true, 0);
}