mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Chat fixed, Negative fixed
This commit is contained in:
parent
5349f16464
commit
7ec27bfb04
4 changed files with 6 additions and 4 deletions
|
|
@ -148,7 +148,7 @@ class ChatAPI{
|
||||||
}
|
}
|
||||||
$message["player"] = "";
|
$message["player"] = "";
|
||||||
}
|
}
|
||||||
|
$container = new Container($message, $whitelist, $blacklist);
|
||||||
$this->server->handle("server.chat", new Container($message, $whitelist, $blacklist));
|
$this->server->handle("server.chat", $container);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1192,6 +1192,7 @@ class Player{
|
||||||
$cnt = $this->send($data);
|
$cnt = $this->send($data);
|
||||||
if(isset($this->chunkCount[$count])){
|
if(isset($this->chunkCount[$count])){
|
||||||
unset($this->chunkCount[$count]);
|
unset($this->chunkCount[$count]);
|
||||||
|
if(!is_null($cnt) and !is_null($cnt[0]))
|
||||||
$this->chunkCount[$cnt[0]] = true;
|
$this->chunkCount[$cnt[0]] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -420,6 +420,7 @@ class PMFLevel extends PMF{
|
||||||
$aX = $x - ($X << 4);
|
$aX = $x - ($X << 4);
|
||||||
$aZ = $z - ($Z << 4);
|
$aZ = $z - ($Z << 4);
|
||||||
$aY = $y - ($Y << 4);
|
$aY = $y - ($Y << 4);
|
||||||
|
#Need to fix. But idk how.
|
||||||
$b = ord($this->chunks[$index][$Y][(int) ($aY + ($aX << 5) + ($aZ << 9))]);
|
$b = ord($this->chunks[$index][$Y][(int) ($aY + ($aX << 5) + ($aZ << 9))]);
|
||||||
$m = ord($this->chunks[$index][$Y][(int) (($aY >> 1) + 16 + ($aX << 5) + ($aZ << 9))]);
|
$m = ord($this->chunks[$index][$Y][(int) (($aY >> 1) + 16 + ($aX << 5) + ($aZ << 9))]);
|
||||||
if(($y & 1) === 0){
|
if(($y & 1) === 0){
|
||||||
|
|
|
||||||
|
|
@ -602,10 +602,10 @@ class Utils{
|
||||||
|
|
||||||
public static function writeLong($value){
|
public static function writeLong($value){
|
||||||
$x = "";
|
$x = "";
|
||||||
if($value[0] === "-"){
|
if(strval($value)[0] === "-"){
|
||||||
$negative = true;
|
$negative = true;
|
||||||
$value = bcadd($value, "1");
|
$value = bcadd($value, "1");
|
||||||
if($value[0] === "-"){
|
if(strval($value)[0] === "-"){
|
||||||
$value = substr($value, 1);
|
$value = substr($value, 1);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue