mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
More hasFiniteResources() usages
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user