mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Map saving, breaking blocks. Huge rewrite
This commit is contained in:
parent
72c4cc7a30
commit
3a2010696f
15 changed files with 423 additions and 484 deletions
|
|
@ -28,6 +28,7 @@ the Free Software Foundation, either version 3 of the License, or
|
|||
|
||||
require_once(dirname(__FILE__)."/config.php");
|
||||
require_once("common/functions.php");
|
||||
//set_error_handler("error_handler");
|
||||
|
||||
$errors = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -120,6 +120,10 @@ function console($message, $EOL = true, $log = true, $level = 1){
|
|||
}
|
||||
}
|
||||
|
||||
function error_handler($errno, $errstr, $errfile, $errline){
|
||||
console("[ERROR] A level ".$errno." error happened: \"$errstr\" in \"$errfile\" at line $errline", true, true, 0);
|
||||
}
|
||||
|
||||
function logg($message, $name, $EOL = true, $level = 2, $close = false){
|
||||
global $fpointers;
|
||||
if((!defined("DEBUG") or DEBUG >= $level) and (!defined("LOG") or LOG === true)){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue