EDIT: You'd better use Unborked instead of this.

Hello everyone.

Recently I've been playing with CC 1.80 beta in 1.10.2, and pre-release 0 is having a very game-breaking bug: when you try to place down an ender modem, the game crashes and it's impossible to log back in again.
As ComputerCraft is taking some time to get updated, I made this very dirty hack to fix that precise bug. Just put the jar in your mods folder like a regular mod, and the bug will get fixed automatically.
It needs to be installed on both client and server.

This is an unoptimized and dirty hack: it's not perfect at all, the fix is so ugly I'm not proud of it. If you have a better suggestion I'd gladly take it.
This is only meant for and compatible with Minecraft 1.10.2 and CC 1.80pr0. Do NOT try to use it with any other version. It won't let you anyway I think.
If you've seen this bug happen in another version, please tell me so I can port the patch. Actually, I'm saying it's not working, but it's just not properly tested… But don't!

Download

Details
SpoilerEnder modems orientation is stored in an IBlockState property (dan200.computercraft.shared.peripheral.common.Properties.FACING), but apparently the built-in Minecraft functions can not find it when the orientation is being checked for some reason, resulting in a crash or server error. I haven't looked into it much, but I couldn't figure out why it can't find it when it was obviously there, so what I did is list the properties, and if one has the name "facing", then it's selected to get the actual property value. It's super slow and dirty, I know, I'm gonna look for a better way, but for now it's still better than a crash that can break a part of your map. If you've got any recommendations or some advice, feel free to shout them! Speaking about ugliness, I'm also just swapping dan200.computercraft.shared.peripheral.modem.TileAdvancedModem with a fixed class using this coremod, not pretty neither, but that's the best way I found. Once again, I'm taking any advice.

Hope you enjoy.

EDIT : Oh well, just noticed Unborked is a thing. At least, I guess that fix was fun to make lol