mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Update Utils.php
This commit is contained in:
parent
d7bfd96739
commit
e6bce73cc5
1 changed files with 2 additions and 2 deletions
|
|
@ -602,10 +602,10 @@ class Utils{
|
|||
|
||||
public static function writeLong($value){
|
||||
$x = "";
|
||||
if(strval($value)[0] === "-"){
|
||||
if(strval($value[0]) === "-"){
|
||||
$negative = true;
|
||||
$value = bcadd($value, "1");
|
||||
if(strval($value)[0] === "-"){
|
||||
if(strval($value[0]) === "-"){
|
||||
$value = substr($value, 1);
|
||||
}
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue