- 459
- 13
- 35
Всем привет, делаю отображение игрока в главном меню. Отображается сзади игрока весь мир:
В чём проблема?
Java:
int w = this.width;
int h = this.height;
GuiHelper.drawFullScreenBackground(0, 0, w, h, mouseX, mouseY, Resources.MAIN_MENU_BCKG);
int playerScale = this.height / 6;
int posX = this.width / 5 - playerScale / 4, posY = this.height / 2 + playerScale;
this.mc.player = this.player;
this.mc.player.dimension = 0;
this.mc.player.rotationPitch = 0.0F;
this.mc.player.rotationYaw = 0.0F;
this.mc.player.eyeHeight = 1.82F;
this.mc.getRenderManager().cacheActiveRenderInfo(this.world, this.fontRenderer, this.mc.player, this.mc.player, this.mc.gameSettings, 0.0F);
this.mc.world = this.worldClient;
this.mc.effectRenderer = new ParticleManager(this.mc.world, this.mc.getTextureManager());
super.drawScreen(mouseX, mouseY, partialTicks);
GuiInventory.drawEntityOnScreen(posX, posY, playerScale, (posX - mouseX), (posY - mouseY) - playerScale * 1.6F, this.mc.player);
В чём проблема?