mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +00:00
Fixed possible infinite loop in hasSpace
This commit is contained in:
parent
f29181a8ee
commit
4a46d8fd9c
@ -351,7 +351,7 @@ class Player{
|
||||
break;
|
||||
}
|
||||
}
|
||||
if($add === 0){
|
||||
if($add <= 0){
|
||||
return false;
|
||||
}
|
||||
$count -= $add;
|
||||
|
Loading…
x
Reference in New Issue
Block a user