mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 11:18:52 +00:00
Fixed #1229
This commit is contained in:
parent
dfe7269019
commit
08149fa4b3
@ -164,7 +164,7 @@ class Entity extends Position{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getDrops(){
|
public function getDrops(){
|
||||||
if($this->class === ENTITY_PLAYER and ($this->player->gamemode & 0x01) === 0){
|
if($this->class === ENTITY_PLAYER and $this->player instanceof Player ($this->player->gamemode & 0x01) === 0){
|
||||||
$inv = array();
|
$inv = array();
|
||||||
for($i = 0; $i < PLAYER_SURVIVAL_SLOTS; ++$i){
|
for($i = 0; $i < PLAYER_SURVIVAL_SLOTS; ++$i){
|
||||||
$slot = $this->player->getSlot($i);
|
$slot = $this->player->getSlot($i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user