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