More hasFiniteResources() usages

This commit is contained in:
Dylan K. Taylor
2019-03-31 16:51:43 +01:00
parent f8ce7797db
commit c59a2d1b93
4 changed files with 7 additions and 7 deletions

View File

@ -100,7 +100,7 @@ class Painting extends Entity{
if($this->lastDamageCause instanceof EntityDamageByEntityEvent){
$killer = $this->lastDamageCause->getDamager();
if($killer instanceof Player and $killer->isCreative()){
if($killer instanceof Player and !$killer->hasFiniteResources()){
$drops = false;
}
}