mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
php8 fix
This commit is contained in:
parent
f6897cf862
commit
ac552afedc
1 changed files with 1 additions and 0 deletions
|
|
@ -711,6 +711,7 @@ class Utils{
|
|||
|
||||
public static function writeLong($value){
|
||||
$x = "";
|
||||
$value = (string) $value;
|
||||
if(!is_float($value)){
|
||||
if(strval($value[0] == null ? '' : $value[0]) === "-"){
|
||||
$negative = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue