mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 12:20:11 +00:00
We have not setup the download for that yet, to make it yourself just zip joined.srg name it deobfusication_data.zip and put it in lib
23 lines
1.2 KiB
Diff
23 lines
1.2 KiB
Diff
--- ../src_base/minecraft/net/minecraft/client/renderer/entity/RenderManager.java
|
|
+++ ../src_work/minecraft/net/minecraft/client/renderer/entity/RenderManager.java
|
|
@@ -218,12 +218,14 @@
|
|
|
|
if (par4EntityLiving.isPlayerSleeping())
|
|
{
|
|
- int i = par1World.getBlockId(MathHelper.floor_double(par4EntityLiving.posX), MathHelper.floor_double(par4EntityLiving.posY), MathHelper.floor_double(par4EntityLiving.posZ));
|
|
-
|
|
- if (i == Block.bed.blockID)
|
|
+ int x = MathHelper.floor_double(par4EntityLiving.posX);
|
|
+ int y = MathHelper.floor_double(par4EntityLiving.posY);
|
|
+ int z = MathHelper.floor_double(par4EntityLiving.posZ);
|
|
+ Block block = Block.blocksList[par1World.getBlockId(x, y, z)];
|
|
+
|
|
+ if (block != null && block.isBed(par1World, x, y, z, par4EntityLiving))
|
|
{
|
|
- int j = par1World.getBlockMetadata(MathHelper.floor_double(par4EntityLiving.posX), MathHelper.floor_double(par4EntityLiving.posY), MathHelper.floor_double(par4EntityLiving.posZ));
|
|
- int k = j & 3;
|
|
+ int k = block.getBedDirection(par1World, x, y, z);;
|
|
this.playerViewY = (float)(k * 90 + 180);
|
|
this.playerViewX = 0.0F;
|
|
}
|