mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49: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){
|
if($this->spawned === false or $this->blocked === true){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->gamemode & 0x01 == 1){
|
||||||
|
ConsoleAPI::warn("{$this->iusername} tried dropping item while in creative!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$packet->eid = $this->eid;
|
$packet->eid = $this->eid;
|
||||||
$prevItem = $packet->item;
|
$prevItem = $packet->item;
|
||||||
$packet->item = $this->getSlot($this->slot);
|
$packet->item = $this->getSlot($this->slot);
|
||||||
|
|
|
||||||
|
|
@ -746,7 +746,11 @@ class PocketMinecraftServer{
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
$dump .= "\r\n```";
|
$dump .= "\r\n```";
|
||||||
$name = "Error_Dump_" . date("D_M_j-H.i.s-T_Y");
|
$name = "Error_Dump_" . date("D_M_j-H.i.s-T_Y");
|
||||||
|
global $dolog;
|
||||||
|
$old = $dolog;
|
||||||
|
$dolog = true;
|
||||||
logg($dump, $name, true, 0, 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);
|
console("[SEVERE] Please submit the \"{$name}.log\" file to the Bug Reporting page. Give as much info as you can.", true, true, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue