This commit is contained in:
aozhiwei 2019-04-16 17:47:11 +08:00
parent 5b28037bc1
commit bdbf50ea8e
2 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,7 @@ Android::~Android()
void Android::Initialize()
{
health = meta->i->health();
skin = 14001;
RecalcSelfCollider();
}

View File

@ -566,6 +566,15 @@ void Player::LootInteraction(Loot* entity)
}
}
break;
case 8:
{
if (skin != 0) {
room->DropItem(pos, item_meta->i->id(), 1);
}
skin = entity->item_id;
need_sync_active_player = true;
}
break;
default:
{
if (item_meta->i->_inventory_slot() >= 0 &&