Fixed: Portal Modules disappear on server restart

Rewrote the module's writeToNBT and readFromNBT methods to correctly
store the module inventory slots in NBT.