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