[MC-3794] Chest direction placing glitch Created: 24/Nov/12  Updated: 09/Dec/17  Resolved: 09/Dec/17

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.5, Minecraft 1.4.7, Snapshot 13w02b, Snapshot 13w10b, Minecraft 1.5, Minecraft 1.7.4, Minecraft 14w02c, Minecraft 14w03b, Minecraft 14w04a, Minecraft 14w04b, Minecraft 1.7.10, Minecraft 14w30c, Minecraft 14w31a, Minecraft 14w32a, Minecraft 14w32b, Minecraft 14w32c, Minecraft 14w32d, Minecraft 14w33a, Minecraft 14w33b, Minecraft 14w33c, Minecraft 1.8-pre1, Minecraft 15w37a, Minecraft 1.9 Pre-Release 1, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 17w06a, Minecraft 1.12 Pre-Release 6, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2
Fix Version/s: Minecraft 17w49b

Type: Bug
Reporter: Is Prive Assignee: Unassigned
Resolution: Fixed Votes: 7
Labels: None

Attachments: File Chest 14w30c.mp4    
Issue Links:
Duplicate
is duplicated by MC-9871 Double chest conflict when chest are ... Resolved
is duplicated by MC-11241 Double chest visual glitch Resolved
is duplicated by MC-31339 Double chest placing graphical glitch Resolved
CHK:
Confirmation Status: Confirmed

 Description   

The bug

When placing a chest it will glitch to another direction for a second.

How to reproduce

  1. Place a chest when you are facing north
  2. Place a chest in front of it
  3. You can see a double chest to another side for half a second

Code analysis

Code analysis by marcono1234 can be found in this comment.



 Comments   
Comment by Marcono1234 [ 05/May/16 ]

Please link to this comment in the description

The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.

The reason for this is very likely that the method net.minecraft.block.BlockChest.onBlockPlaced(World, BlockPos, EnumFacing, float, float, float, int, EntityLivingBase) is not calling the method net.minecraft.block.BlockChest.checkForSurroundingChests(World, BlockPos, IBlockState).

This might be inefficient because the method net.minecraft.block.BlockChest.onBlockAdded(World, BlockPos, IBlockState) is doing this always, whereas the method mentioned before and the method net.minecraft.block.BlockChest.onBlockPlacedBy(World, BlockPos, IBlockState, EntityLivingBase, ItemStack) do this when the chest is placed by a player, which means the same tests are done three times at the end.

Comment by Immaterialise [ 17/Feb/16 ]

Confirmed for 1.9-pre1

Comment by Marcono1234 [ 11/Sep/15 ]

Confirmed for

  • 15w37a
Comment by qmagnet [ 16/Aug/14 ]

Confirmed for 14w33c

Comment by Marcono1234 [ 27/Jul/14 ]

Confirmed for

  • 14w30c
  • 14w31a
  • Minecraft 1.8-pre 1 also sometimes when breaking a double chest
Comment by [Mod] CubeTheThird [ 21/Feb/13 ]

Added some labels for future reference.

Comment by Leif Messinger [ 19/Feb/13 ]

Sorry that i duplicated, i tried to search "double chest glitch" and i went through 61 bugs. I tried.

Comment by Tails [ 16/Jan/13 ]

Same with trapped chests.

Comment by [Mod] CubeTheThird [ 25/Nov/12 ]

Can confirm.

Generated at Sun Jan 12 12:02:25 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.