mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Fixed possible infinite loop in hasSpace
This commit is contained in:
parent
f29181a8ee
commit
4a46d8fd9c
1 changed files with 1 additions and 1 deletions
|
|
@ -351,7 +351,7 @@ class Player{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($add === 0){
|
if($add <= 0){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$count -= $add;
|
$count -= $add;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue