Merge branch '3.6'

This commit is contained in:
Dylan K. Taylor
2019-02-14 16:04:32 +00:00
5 changed files with 33 additions and 14 deletions

View File

@ -299,7 +299,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
$food = $this->getFood();
if($food > 0){
$food--;
$this->setFood($food);
$this->setFood(max($food, 0));
}
}
}