mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-17 00:44:08 +00:00
ItemEntity: fixed using -1 for infinite pickup delay not working
closes #2382 (squash-merge)
This commit is contained in:
parent
a604e6835e
commit
a5e38576ef
@ -197,7 +197,7 @@ class ItemEntity extends Entity{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onCollideWithPlayer(Player $player) : void{
|
public function onCollideWithPlayer(Player $player) : void{
|
||||||
if($this->getPickupDelay() > 0){
|
if($this->getPickupDelay() !== 0){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user