Skip to content

Commit

Permalink
fix: chest checking wrong block
Browse files Browse the repository at this point in the history
  • Loading branch information
Sychic committed Aug 14, 2023
1 parent 8d07027 commit 3f740b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class BlockChestMixin_VanillaSlabChests {
//#if MC<11200
@Redirect(method = "isBelowSolidBlock", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/World;isSideSolid(Lnet/minecraft/util/BlockPos;Lnet/minecraft/util/EnumFacing;Z)Z"))
public boolean patcher$isBelowSolidBlock(World instance, BlockPos blockPos, EnumFacing enumFacing, boolean b) {
return ((BlockExt) instance.getBlockState(blockPos.up()).getBlock()).patcher$doesSideBlockChestOpening(instance, blockPos, enumFacing);
return ((BlockExt) instance.getBlockState(blockPos).getBlock()).patcher$doesSideBlockChestOpening(instance, blockPos, enumFacing);
}
//#endif
}

0 comments on commit 3f740b4

Please sign in to comment.