mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11: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
|
|
@ -602,10 +602,10 @@ class Utils{
|
|||
|
||||
public static function writeLong($value){
|
||||
$x = "";
|
||||
if($value[0] === "-"){
|
||||
if(strval($value)[0] === "-"){
|
||||
$negative = true;
|
||||
$value = bcadd($value, "1");
|
||||
if($value[0] === "-"){
|
||||
if(strval($value)[0] === "-"){
|
||||
$value = substr($value, 1);
|
||||
}
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue