mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Oopsie-doopise
This commit is contained in:
parent
29ae199268
commit
3df7d91c8a
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ class Entity extends Position{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDrops(){
|
public function getDrops(){
|
||||||
if($this->class === ENTITY_PLAYER and $this->player instanceof Player and $this->player->gamemode & 0x01 === 0){
|
if($this->class === ENTITY_PLAYER and $this->player instanceof Player and ($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…
Add table
Add a link
Reference in a new issue