mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-24 19:39:47 +00:00
FIX: Steve skin hand, containers open in creative, crash when downfalls is nullptr, build on android (hope)
This commit is contained in:
parent
d7a51b09f1
commit
9a743b9aea
11 changed files with 42 additions and 22 deletions
|
|
@ -70,13 +70,18 @@ void PlayerRenderer::renderName( Mob* mob, float x, float y, float z ){
|
|||
}
|
||||
}
|
||||
|
||||
void PlayerRenderer::render(Entity* mob_, float x, float y, float z, float rot, float a) {
|
||||
Mob* mob = (Mob*) mob_;
|
||||
// @note fix player skin system
|
||||
void PlayerRenderer::setModernSkin(Mob* mob) {
|
||||
HumanoidModel* desired = isModernPlayerSkin(mob) ? playerModel64 : playerModel32;
|
||||
if (model != desired || humanoidModel != desired) {
|
||||
model = desired;
|
||||
humanoidModel = desired;
|
||||
}
|
||||
}
|
||||
|
||||
void PlayerRenderer::render(Entity* mob_, float x, float y, float z, float rot, float a) {
|
||||
Mob* mob = (Mob*) mob_;
|
||||
setModernSkin(mob);
|
||||
/* LOGI("[PlayerRenderer] %s: skin=%s, modelTex=%dx%d, desired=%s\n",
|
||||
((Player*)mob)->name.c_str(), mob->getTexture().c_str(),
|
||||
humanoidModel->texWidth, humanoidModel->texHeight,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue