ItemEntity: fixed using -1 for infinite pickup delay not working

closes #2382 (squash-merge)
This commit is contained in:
Frago9876543210 2018-08-16 17:28:58 +03:00 committed by Dylan K. Taylor
parent a604e6835e
commit a5e38576ef

View File

@ -197,7 +197,7 @@ class ItemEntity extends Entity{
}
public function onCollideWithPlayer(Player $player) : void{
if($this->getPickupDelay() > 0){
if($this->getPickupDelay() !== 0){
return;
}