mojira.dev
MC-99321

Hoppers cannot pull items from double chests if second chest is blocked

The bug

Hoppers can now pull items from blocked chests. However, this is not working correctly for double chests. If the second chest (first chest being the one where the hopper is below) is blocked the hopper is unable to pull items from the double chest.

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The method net.minecraft.block.BlockChest.getContainer(World, BlockPos, boolean) ignores the allowBlocking paramter (= third parameter; should be called "allowBlockedChests" or similar) when checking if adjacent chests are blocked.

Forge pull request

A pull request on MinecraftForge can be found here: https://github.com/MinecraftForge/MinecraftForge/pull/4590

Linked issues

Attachments

Comments 6

Hoppers on the left side can not push items in or out, hoppers on the right side can't.

Confirmed, the left side can't, but the right side can

Confirmed for 16w42a.

Hoppers only seem to care if the far side of the double chest has a block on top. Additionally, they can insert items into blocked singlechests just fine. http://i.imgur.com/sZmvkNt.png

I was relieved to find that this bug has already been reported. I added some more photos that i think helps to show whats going on. I agree that it seems to be because the chest is blocked. Since when i break the block the items feed into the chest as expected. However, it doesn't effect single chests. Only double ones.

EDIT: By the way confirmed for 1.11.2 is the version i am in.

Can confirm for 17w43a/b

Can confirm for 17w47b

Panda4994

Erik Broes

Confirmed

chest, double-chest, hopper, item, pull

Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, ..., Minecraft 17w43b, Minecraft 17w45a, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47b

Minecraft 17w49a

Retrieved