Mojira Archive
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